Skip to content

Commit 4fd26b8

Browse files
committed
commit
1 parent 6f809e3 commit 4fd26b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export class EditTagsComponent
242242

243243
this.itemTagsById.clear();
244244

245-
if (this.item?.isFolder) {
245+
if (this.item && this.item.isFolder) {
246246
this.itemTags = this.filterTagsByType(
247247
(this.item?.TagVOs || [])
248248
.map((tag) => this.allTags?.find((t) => t.tagId === tag.tagId))
@@ -253,7 +253,7 @@ export class EditTagsComponent
253253
);
254254
}
255255

256-
if (this.item?.isRecord) {
256+
if (this.item && this.item?.isRecord) {
257257
this.itemTags = this.filterTagsByType(
258258
(this.item?.tags || [])
259259
.map((tag) => this.allTags?.find((t) => t.tagId === +tag.id))

0 commit comments

Comments
 (0)