diff --git a/src/app/helperFunctions/customTableFilterFunction.ts b/src/app/helperFunctions/customTableFilterFunction.ts index 8c53504..8cd429c 100644 --- a/src/app/helperFunctions/customTableFilterFunction.ts +++ b/src/app/helperFunctions/customTableFilterFunction.ts @@ -1,6 +1,6 @@ export function customTableFilterFunction(data: any, filter: any) { if (data.newObject) { - return true; // always show new objects + return true; // always show newly created objects } if (filter.onlyUnsaved && !data.isLockedByMe) { return false; @@ -8,7 +8,7 @@ export function customTableFilterFunction(data: any, filter: any) { for (const filterElementName of Object.keys(filter.columnFilters)) { const filterElement = filter.columnFilters[filterElementName]; // List Filter - ignore types if column is list - if (filterElement.list && filterElement.values.length > 0) { + if (filterElement.list && filterElement.values?.length > 0) { let dataElement: Array = data[filterElementName]; if (dataElement.length !== filterElement.values.length) { return false;