Skip to content

Commit 39c7df7

Browse files
committed
Remove sync dependency of presentation-publishing from triggersActionsUi
1 parent c2b9d73 commit 39c7df7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

x-pack/platform/plugins/shared/triggers_actions_ui/public/common/alert_rule_from_vis_ui_action/alert_rule_from_vis_ui_action.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import type {
1313
} from '@kbn/alerts-ui-shared';
1414
import { i18n } from '@kbn/i18n';
1515
import type { LensApi } from '@kbn/lens-plugin/public';
16-
import { apiIsOfType, hasBlockingError } from '@kbn/presentation-publishing';
1716
import { ALERT_RULE_TRIGGER } from '@kbn/ui-actions-browser/src/triggers';
1817
import type { Action } from '@kbn/ui-actions-plugin/public';
1918
import { DiscoverFlyouts, dismissAllFlyoutsExceptFor } from '@kbn/discover-utils';
@@ -47,6 +46,7 @@ export class AlertRuleFromVisAction implements Action<Context> {
4746
public getIconType = () => 'bell';
4847

4948
public async isCompatible({ embeddable }: Context) {
49+
const { apiIsOfType, hasBlockingError } = await import('@kbn/presentation-publishing');
5050
const isLensApi = apiIsOfType(embeddable, 'lens');
5151
if (!isLensApi || hasBlockingError(embeddable)) return false;
5252
const query = embeddable.query$.getValue();

0 commit comments

Comments
 (0)