From 1c4da58d8c4cb3022cbceee57179d77cecc9dab1 Mon Sep 17 00:00:00 2001 From: navaneeth Date: Sat, 10 Apr 2021 17:07:44 +0530 Subject: [PATCH] BugFix: Errors for tables without loading state --- frontend/src/Editor/Components/Table.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/Editor/Components/Table.jsx b/frontend/src/Editor/Components/Table.jsx index 46d7dd3c70..9adf4d0759 100644 --- a/frontend/src/Editor/Components/Table.jsx +++ b/frontend/src/Editor/Components/Table.jsx @@ -7,7 +7,7 @@ import { useAsyncDebounce, usePagination } from "react-table"; -import { resolve } from '@/_helpers/utils'; +import { resolve, resolve_references } from '@/_helpers/utils'; import Skeleton from 'react-loading-skeleton'; export function Table({ id, width, height, component, onComponentClick, currentState, onEvent }) { @@ -18,7 +18,7 @@ export function Table({ id, width, height, component, onComponentClick, currentS let loadingState = false; const loadingStateProperty = component.definition.properties.loadingState; if(loadingStateProperty && currentState) { - loadingState = resolve(loadingStateProperty.value, currentState); + loadingState = resolve_references(loadingStateProperty.value, currentState); } const [filterInput, setFilterInput] = useState("");