Skip to content

Commit

Permalink
fix workbench dependency on observability
Browse files Browse the repository at this point in the history
Signed-off-by: Shenoy Pratik <[email protected]>
  • Loading branch information
ps48 committed Apr 2, 2024
1 parent eb6e392 commit 8d22765
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion public/dependencies/register_observability_dependencies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8d22765

Please sign in to comment.