fix: use correct tree alias for template picker

This commit is contained in:
Jacob Overgaard
2024-02-09 11:09:50 +01:00
parent 0d14794d21
commit 0cbcd27d09

View File

@@ -1,6 +1,6 @@
import { UmbModalToken } from './modal-token.js';
import type { UmbPickerModalValue, UmbTreePickerModalData } from '@umbraco-cms/backoffice/modal';
import type { UmbTemplateTreeItemModel } from '@umbraco-cms/backoffice/template';
import { UMB_TEMPLATE_TREE_ALIAS, type UmbTemplateTreeItemModel } from '@umbraco-cms/backoffice/template';
export type UmbTemplatePickerModalData = UmbTreePickerModalData<UmbTemplateTreeItemModel>;
export type UmbTemplatePickerModalValue = UmbPickerModalValue;
@@ -13,7 +13,7 @@ export const UMB_TEMPLATE_PICKER_MODAL = new UmbModalToken<UmbTemplatePickerModa
size: 'small',
},
data: {
treeAlias: 'Umb.Tree.Templates',
treeAlias: UMB_TEMPLATE_TREE_ALIAS,
},
},
);