Skip to content

Commit 6f809e3

Browse files
committed
coommmiititiit
1 parent 3aea1f7 commit 6f809e3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/app/file-browser/components/edit-tags/edit-tags.component.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,12 @@ export class EditTagsComponent
264264
);
265265
}
266266

267-
for (const tag of this.itemTags) {
268-
this.itemTagsById.add(tag.tagId);
267+
if (Array.isArray(this.itemTags)) {
268+
for (const tag of this.itemTags) {
269+
this.itemTagsById.add(tag.tagId);
270+
}
269271
}
272+
270273
this.tagsService.setItemTags(
271274
this.item.isFolder ? this.item.TagVOs : (this.item as RecordVO).tags,
272275
);

0 commit comments

Comments
 (0)