From 3bbf36a77f8370b8360199532e1024766371478b Mon Sep 17 00:00:00 2001 From: Tyler Ohlsen Date: Fri, 22 Nov 2024 14:24:48 -0800 Subject: [PATCH] Update vis augmenter eligibility fn to async (#938) Signed-off-by: Tyler Ohlsen (cherry picked from commit f152d98c0f49915bace7c28537fcdb6d8d6bacfb) --- public/action/ad_dashboard_action.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/action/ad_dashboard_action.tsx b/public/action/ad_dashboard_action.tsx index 2cde952b..06f99c7e 100644 --- a/public/action/ad_dashboard_action.tsx +++ b/public/action/ad_dashboard_action.tsx @@ -66,7 +66,7 @@ export const createADAction = ({ embeddable.getInput()?.viewMode === 'view' && isDashboard(embeddable.parent) && vis !== undefined && - isEligibleForVisLayers(vis, getUISettings()) + await isEligibleForVisLayers(vis, getUISettings()) ); }, execute: async ({ embeddable }: ActionContext) => {