From 8d227658ef33b83464df2b091afc4468f1eb0ff4 Mon Sep 17 00:00:00 2001 From: Shenoy Pratik Date: Tue, 2 Apr 2024 14:46:44 -0700 Subject: [PATCH] fix workbench dependency on observability Signed-off-by: Shenoy Pratik --- .../dependencies/register_observability_dependencies.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/dependencies/register_observability_dependencies.tsx b/public/dependencies/register_observability_dependencies.tsx index 3a83446..f785b6c 100644 --- a/public/dependencies/register_observability_dependencies.tsx +++ b/public/dependencies/register_observability_dependencies.tsx @@ -23,7 +23,12 @@ export const [ ] = createGetterSetter<(dataSource: string) => void>('renderCreateAccelerationFlyout'); export const registerObservabilityDependencies = (start?: ObservabilityStart) => { - if (!start) return; + if (!start) { + setRenderAccelerationDetailsFlyout(() => {}); + setRenderAssociatedObjectsDetailsFlyout(() => {}); + setRenderCreateAccelerationFlyout(() => {}); + return; + } setRenderAccelerationDetailsFlyout(start.renderAccelerationDetailsFlyout); setRenderAssociatedObjectsDetailsFlyout(start.renderAssociatedObjectsDetailsFlyout);