mirror of
https://github.com/nasa/openmct.git
synced 2025-03-21 03:25:44 +00:00
Use timeKey for time comparison (#5471)
This commit is contained in:
parent
0f0a3dc48f
commit
e9c0909415
@ -76,7 +76,10 @@ export default {
|
||||
dataRemoved(dataToRemove) {
|
||||
this.imageHistory = this.imageHistory.filter(existingDatum => {
|
||||
const shouldKeep = dataToRemove.some(datumToRemove => {
|
||||
return (existingDatum.utc !== datumToRemove.utc);
|
||||
const existingDatumTimestamp = this.parseTime(existingDatum);
|
||||
const datumToRemoveTimestamp = this.parseTime(datumToRemove);
|
||||
|
||||
return (existingDatumTimestamp !== datumToRemoveTimestamp);
|
||||
});
|
||||
|
||||
return shouldKeep;
|
||||
|
Loading…
x
Reference in New Issue
Block a user