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 && ( onQueryFunctionsUpdates && (
<QueryFunctions <QueryFunctions
query={query} query={query}
queryFunctions={query.functions} queryFunctions={query.functions || []}
key={query.functions.toString()} key={query.functions?.toString()}
onChange={onQueryFunctionsUpdates} onChange={onQueryFunctionsUpdates}
maxFunctions={isLogsDataSource ? 1 : 3} maxFunctions={isLogsDataSource ? 1 : 3}
/> />