Temp fix for isSystem flag

As the server API is currently expecting a `1` or `0` value,
not a boolean type.
This commit is contained in:
leekelleher
2024-02-19 12:51:10 +00:00
parent a933d96992
commit a04ade67c9

View File

@@ -9,7 +9,7 @@ import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
interface ColumnConfig {
alias: string;
header: string;
isSystem: boolean;
isSystem: 1 | 0;
nameTemplate?: string;
}
@@ -77,7 +77,7 @@ export class UmbPropertyEditorUICollectionViewColumnConfigurationElement
const config: ColumnConfig = {
alias: selected.value,
header: selected.name,
isSystem: selected?.group === 'System Fields',
isSystem: selected?.group === 'System Fields' ? 1 : 0,
};
this.value = [...this.value, config];
@@ -133,7 +133,7 @@ export class UmbPropertyEditorUICollectionViewColumnConfigurationElement
(configuration) =>
html`<uui-table-row>
<uui-table-cell><uui-icon name="icon-navigation"></uui-icon></uui-table-cell>
${configuration.isSystem
${configuration.isSystem === 1
? this.#renderSystemFieldRow(configuration)
: this.#renderCustomFieldRow(configuration)}
<uui-table-cell>