Skip to content

Commit dab2aec

Browse files
committed
refactor(assets-view): improve last input display logic and remove debug logging
Signed-off-by: Manuel Abascal <mjabascal10@gmail.com>
1 parent 1d5064a commit dab2aec

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

frontend/src/app/assets-discover/assets-view/assets-view.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ <h5 class="card-title mb-0 text-uppercase label-header">
198198
</div>
199199
</td>
200200
<td>
201-
{{ asset.lastInput | date }}
201+
{{ asset.lastInput !== 'Unknown' ? (asset.lastInput | date) : '-' }}
202202
</td>
203203

204204
<td class="td-action">

frontend/src/app/assets-discover/assets-view/assets-view.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,6 @@ export class AssetsViewComponent implements OnInit, OnDestroy {
389389
}
390390

391391
getLastInput(asset: NetScanType) {
392-
console.log('getLastInput', asset.lastInput);
393392
if (asset.dataInputList.length > 0) {
394393
const lastInput = asset.dataInputList[asset.dataInputList.length - 1].timestamp;
395394
asset.lastInputTimestamp = lastInput;

0 commit comments

Comments
 (0)