fix editor ui alias
This commit is contained in:
@@ -310,6 +310,7 @@ export const data: Array<UmbMockDataTypeModel> = [
|
||||
id: 'dt-datePicker-time',
|
||||
parent: null,
|
||||
editorAlias: 'Umbraco.DateTime',
|
||||
editorUiAlias: 'Umb.PropertyEditorUi.DatePicker',
|
||||
hasChildren: false,
|
||||
isFolder: false,
|
||||
isDeletable: true,
|
||||
|
||||
@@ -44,6 +44,7 @@ const createFolderMockMapper = (request: CreateFolderRequestModel): UmbMockDataT
|
||||
isFolder: true,
|
||||
hasChildren: false,
|
||||
editorAlias: '',
|
||||
editorUiAlias: '',
|
||||
isDeletable: true,
|
||||
canIgnoreStartNodes: false,
|
||||
values: [],
|
||||
|
||||
@@ -120,6 +120,7 @@ export class UmbDataTypeServerDataSource implements UmbDetailDataSource<UmbDataT
|
||||
async update(model: UmbDataTypeDetailModel) {
|
||||
if (!model.unique) throw new Error('Unique is missing');
|
||||
if (!model.editorAlias) throw new Error('Property Editor Alias is missing');
|
||||
if (!model.editorUiAlias) throw new Error('Property Editor UI Alias is missing');
|
||||
|
||||
// TODO: make data mapper to prevent errors
|
||||
const requestBody: UpdateDataTypeRequestModel = {
|
||||
|
||||
Reference in New Issue
Block a user