diff --git a/frontend/src/components/object/ObjectTable.vue b/frontend/src/components/object/ObjectTable.vue index c5722938..b3df79f1 100644 --- a/frontend/src/components/object/ObjectTable.vue +++ b/frontend/src/components/object/ObjectTable.vue @@ -116,7 +116,10 @@ const loadLazyData = (event?: any) => { lazyParams.value?.filters?.meta.value //Header ) .then((r: any) => { - tableData.value = r.data; + tableData.value = r.data.map(({ ...item }) => ({ + ...item, + updatedAt: item.updatedAt === null ? item.createdAt : item.updatedAt + })); totalRecords.value = +r?.headers['x-total-rows']; // add objects to store objectStore.setObjects(r.data); @@ -125,7 +128,7 @@ const loadLazyData = (event?: any) => { }) // add object permissions to store .then((objects: Array) => { - if(objects.length > 0) { + if (objects.length > 0) { permissionStore.fetchObjectPermissions({ objectId: objects.map((o: COMSObject) => o.id) }); } }); @@ -294,7 +297,7 @@ const selectedFilters = (payload: any) => { sortable >