remove selectedValuesNew from value update

This commit is contained in:
JesmoDev
2024-09-19 11:08:12 +02:00
parent 462efda816
commit cd348dd424

View File

@@ -47,27 +47,6 @@ export class UmbPropertyEditorUiTiptapToolbarConfigurationElement
}
}
this.#selectedValues.forEach((alias) => {
const row = Math.floor(Math.random() * 2);
const group = Math.floor(Math.random() * 2);
const item = this._toolbarConfig.find((value) => value.alias === alias);
if (!item) return;
// Ensure the row exists
if (!this._selectedValuesNew[row]) {
this._selectedValuesNew[row] = []; // Initialize the row if it doesn't exist
}
// Ensure the group exists within the row
if (!this._selectedValuesNew[row][group]) {
this._selectedValuesNew[row][group] = []; // Initialize the group if it doesn't exist
}
// Add the item to the selectedValuesNew array
this._selectedValuesNew[row][group].push(item);
});
this.requestUpdate('#selectedValuesNew');
}
get value(): string[] {