From ab9af0d9d577cb59a8aa920410fb55b639b353c7 Mon Sep 17 00:00:00 2001 From: DLHTX <949729789@qq.com> Date: Wed, 7 Jun 2023 18:01:16 +0800 Subject: [PATCH] fix(lab): fix lab issuse --- src/store/lib/w3bstream/schema/filesList.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/store/lib/w3bstream/schema/filesList.ts b/src/store/lib/w3bstream/schema/filesList.ts index 634c1d76..a3626f76 100644 --- a/src/store/lib/w3bstream/schema/filesList.ts +++ b/src/store/lib/w3bstream/schema/filesList.ts @@ -59,11 +59,11 @@ export class FilesListSchema { id: item?.key, parent: parent, droppable: item.type == 'folder', - text: item.label, + text: item?.label, data: item }); - if (item.children) { - flatten(item.children, item.key); + if (item?.children) { + flatten(item?.children, item?.key); } }); };