diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/translation/dashboards/dictionary/dashboard-translation-dictionary.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/translation/dashboards/dictionary/dashboard-translation-dictionary.element.ts index d324fb3b32..ed37d699d6 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/translation/dashboards/dictionary/dashboard-translation-dictionary.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/translation/dashboards/dictionary/dashboard-translation-dictionary.element.ts @@ -165,7 +165,6 @@ export class UmbDashboardTranslationDictionaryElement extends UmbLitElement { const result = await this.#repo?.create({ $type: '', name, parentKey: null, translations: [], key: '' }); // TODO => get location header to route to new item - console.log(result); } render() { diff --git a/src/Umbraco.Web.UI.Client/src/core/mocks/domains/dictionary.handlers.ts b/src/Umbraco.Web.UI.Client/src/core/mocks/domains/dictionary.handlers.ts index 25df97d47a..036d063c59 100644 --- a/src/Umbraco.Web.UI.Client/src/core/mocks/domains/dictionary.handlers.ts +++ b/src/Umbraco.Web.UI.Client/src/core/mocks/domains/dictionary.handlers.ts @@ -51,7 +51,6 @@ export const handlers = [ if (!key) return; const dictionary = umbDictionaryData.getByKey(key); - console.log(dictionary); return res(ctx.status(200), ctx.json(dictionary)); }), @@ -77,7 +76,6 @@ export const handlers = [ const data = await req.json(); if (!data) return; - data.parentKey = data.parentId; data.icon = 'umb:book-alt'; data.hasChildren = false; data.type = 'dictionary-item'; @@ -181,7 +179,7 @@ export const handlers = [ if (!file) return; - importResponse.parentKey = req.url.searchParams.get('parentId') ?? null; + importResponse.parentKey = req.url.searchParams.get('parentKey') ?? null; umbDictionaryData.save(importResponse); // build the path to the new item => reflects the expected server response