fix: default-popup skip empty objects

This commit is contained in:
Michal Szczepanski 2023-09-26 02:04:20 +02:00
parent 1302ff9e88
commit 8b28017e39

@ -56,6 +56,11 @@ const fetchObjects = async (idList: number[], index: number, href?: string): Pro
const objs: ObjDto<ObjPageDataDto>[] = [];
for (index; index < idList.length; index++) {
const obj = await new ObjGetCommand<ObjPageDataDto>(idList[index]).execute();
// TODO check it - something is not deleting
if (!obj) {
LogManager.log(`PROBLEM ${index} ${idList[index]}`);
continue;
}
if (hrefFilter(obj, href)) continue;
objs.push(obj);
}