aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/src/components/Checks/file.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/workflowengine/src/components/Checks/file.js')
-rw-r--r--apps/workflowengine/src/components/Checks/file.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/workflowengine/src/components/Checks/file.js b/apps/workflowengine/src/components/Checks/file.js
index 76f998da007..0cc49c2d4c1 100644
--- a/apps/workflowengine/src/components/Checks/file.js
+++ b/apps/workflowengine/src/components/Checks/file.js
@@ -65,7 +65,7 @@ const FileChecks = [
{ operator: 'greater', name: t('workflowengine', 'greater') }
],
placeholder: (check) => '5 MB',
- validate: (check) => check.value.match(/^[0-9]+[ ]?[kmgt]?b$/i) !== null
+ validate: (check) => check.value ? check.value.match(/^[0-9]+[ ]?[kmgt]?b$/i) !== null : false
},
{