From 569b0de3517f37a28a675f3f4f34d9f2d6d0d0bf Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 19 Mar 2024 10:40:00 -0600 Subject: [PATCH] Et2VfsSelectDialog: Fix bad value after double-clicking a directory --- api/js/etemplate/Et2Vfs/Et2VfsSelectDialog.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2Vfs/Et2VfsSelectDialog.ts b/api/js/etemplate/Et2Vfs/Et2VfsSelectDialog.ts index efe08f71db..62bf7c87cf 100644 --- a/api/js/etemplate/Et2Vfs/Et2VfsSelectDialog.ts +++ b/api/js/etemplate/Et2Vfs/Et2VfsSelectDialog.ts @@ -524,7 +524,7 @@ export class Et2VfsSelectDialog } else { - this.value = [this.selectedResults[0]?.value.path] ?? []; + this.value = (this.selectedResults?.length ? [this.selectedResults[0].value.path] : []) ?? []; } }