From 96c70bce917115f8cf7ad897c3c29369694c2921 Mon Sep 17 00:00:00 2001 From: Esteban Gallego Date: Wed, 23 Oct 2024 15:51:30 -0400 Subject: [PATCH] Display error correctly --- src/components/renderer/file-upload.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/renderer/file-upload.vue b/src/components/renderer/file-upload.vue index ceeb00bb7..b76c9004e 100644 --- a/src/components/renderer/file-upload.vue +++ b/src/components/renderer/file-upload.vue @@ -597,6 +597,10 @@ export default { } if (displayMessage.length > 0) { + const data = JSON.parse(displayMessage); + if (data.message) { + displayMessage = data.message; + } window.ProcessMaker.alert(`${this.$t('File Upload Error:')} ${displayMessage}`, 'danger'); }