fix(frontend): correctly handle when result is undefined (#2693)

This commit is contained in:
Faton Ramadani
2023-11-23 18:21:58 +01:00
committed by GitHub
parent 0b809e2668
commit c5c736c157
@@ -33,7 +33,7 @@
}
function updateRemainingColumns(result: any[], columns: string[]) {
if (result.length > 0) {
if (result?.length > 0) {
const allKeysSet: Set<string> = result.reduce((acc, obj) => {
Object.keys(obj).forEach((key) => acc.add(key))
return acc