aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/src/components/Checks/file.js
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-10-10 15:32:55 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2019-10-29 18:03:54 +0100
commite72f58b000efbca5efa74098dbfa7f2f7418bcc0 (patch)
tree7c28fdc5525cddf6a102d7aca6587c8fa3627fc9 /apps/workflowengine/src/components/Checks/file.js
parent6878d36e501801daa736a97a3b0137083272bc84 (diff)
downloadnextcloud-server-e72f58b000efbca5efa74098dbfa7f2f7418bcc0.tar.gz
nextcloud-server-e72f58b000efbca5efa74098dbfa7f2f7418bcc0.zip
Fix bugs with check plugins
Signed-off-by: Julius Härtl <jus@bitgrid.net>
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
},
{