don't show culture warning when creating new language

This commit is contained in:
Jesper Møller Jensen
2023-02-01 01:30:42 +01:00
parent 98a69d1b55
commit 0c478d0665

View File

@@ -164,7 +164,7 @@ export class UmbWorkspaceViewLanguageEditElement extends UmbLitElement {
}
#renderCultureWarning() {
if (this._startData?.isoCode === this.language?.isoCode) return nothing;
if (!this._startData?.isoCode || this._startData?.isoCode === this.language?.isoCode) return nothing;
return html`<div id="culture-warning">
Changing the culture for a language may be an expensive operation and will result in the content cache and indexes