From 66dd6899d3b83080d8df31b8402f242d53a8ed4c Mon Sep 17 00:00:00 2001 From: Julien Nahum Date: Wed, 26 Mar 2025 17:16:23 +0100 Subject: [PATCH] ESC-511-when-accessing-the-form-su Update OpenFile.vue to Ensure Proper File Parsing - Modified the `parsedFiles` computed property in OpenFile.vue to check if `this.value` is an array before mapping over it. This change prevents potential errors when `this.value` is null or not an array, enhancing the robustness of the file parsing logic. These changes aim to improve the reliability of file handling within the component, ensuring that only valid arrays are processed. --- client/components/open/tables/components/OpenFile.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/components/open/tables/components/OpenFile.vue b/client/components/open/tables/components/OpenFile.vue index 5390356b..78b67c4c 100644 --- a/client/components/open/tables/components/OpenFile.vue +++ b/client/components/open/tables/components/OpenFile.vue @@ -60,7 +60,7 @@ export default { computed: { parsedFiles() { - return this.value + return this.value && Array.isArray(this.value) ? this.value.map((file) => { return { file_name: file.file_name,