lint fixes
This commit is contained in:
@@ -39,9 +39,9 @@ import { UmbTemplateTreeStore } from './templating/templates/tree/data/template.
|
||||
import { UmbTemplateDetailStore } from './templating/templates/workspace/data/template.detail.store';
|
||||
import { UmbThemeContext } from './themes/theme.context';
|
||||
import { UmbLanguageStore } from './settings/languages/repository/language.store';
|
||||
import { UMB_APP_LANGUAGE_CONTEXT_TOKEN, UmbAppLanguageContext } from './settings/languages/app-language.context';
|
||||
import { UmbNotificationService, UMB_NOTIFICATION_SERVICE_CONTEXT_TOKEN } from '@umbraco-cms/notification';
|
||||
import { UmbLitElement } from '@umbraco-cms/element';
|
||||
import { UMB_APP_LANGUAGE_CONTEXT_TOKEN, UmbAppLanguageContext } from './settings/languages/app-language.context';
|
||||
|
||||
import '@umbraco-cms/router';
|
||||
|
||||
|
||||
@@ -79,9 +79,9 @@ export class UmbDataTypeServerDataSource implements RepositoryDetailDataSource<D
|
||||
return tryExecuteAndNotify<DataTypeModel>(
|
||||
this.#host,
|
||||
// TODO: avoid this any?..
|
||||
DataTypeResource.postDataType({
|
||||
tryExecuteAndNotify(this, DataTypeResource.postDataType({
|
||||
requestBody,
|
||||
}) as any
|
||||
})) as any
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -72,7 +72,10 @@ export class UmbTemplateDetailServerDataSource implements TemplateDetailDataSour
|
||||
async insert(template: TemplateModel) {
|
||||
const payload = { requestBody: template };
|
||||
// TODO: fix type mismatch
|
||||
return tryExecuteAndNotify(this.#host, TemplateResource.postTemplate(payload) as any) as any;
|
||||
return tryExecuteAndNotify(
|
||||
this.#host,
|
||||
tryExecuteAndNotify(this.#host, TemplateResource.postTemplate(payload)) as any
|
||||
) as any;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user