fix: handle the case where the functions are recieved as undefined in the query response (#4880)

This commit is contained in:
Vikrant Gupta 2024-04-18 11:17:28 +05:30 committed by GitHub
parent 48e5436167
commit a140bef0e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -105,8 +105,8 @@ export default function QBEntityOptions({
onQueryFunctionsUpdates && (
<QueryFunctions
query={query}
queryFunctions={query.functions}
key={query.functions.toString()}
queryFunctions={query.functions || []}
key={query.functions?.toString()}
onChange={onQueryFunctionsUpdates}
maxFunctions={isLogsDataSource ? 1 : 3}
/>