fix no items bug

This commit is contained in:
JesmoDev
2024-09-26 02:17:32 +02:00
parent 001590dd10
commit 3dc10183ce

View File

@@ -112,10 +112,9 @@ export class UmbTiptapToolbarGroupsConfiguration2Element extends UmbLitElement {
}
toStructuredData = (data: TestServerValue) => {
const structuredData: string[][][] = [];
if (!data.length) return [[[]]];
const structuredData: string[][][] = [[[]]];
data.forEach(({ alias, position }) => {
if (!position) return;