From b0f5b9b1ce5079e17c9bdf3de51a373197592d27 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 21 Jan 2021 13:45:05 +0000 Subject: [PATCH] Prevent invalid query params being enriched --- packages/client/src/utils/buttonActions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/utils/buttonActions.js b/packages/client/src/utils/buttonActions.js index c4a3b36e73..178abd328d 100644 --- a/packages/client/src/utils/buttonActions.js +++ b/packages/client/src/utils/buttonActions.js @@ -51,7 +51,7 @@ const navigationHandler = action => { const queryExecutionHandler = async (action, context) => { const { datasourceId, queryId, queryParams } = action.parameters - const enrichedQueryParameters = enrichDataBindings(queryParams, context) + const enrichedQueryParameters = enrichDataBindings(queryParams || {}, context) await executeQuery({ datasourceId, queryId,