Skip to content

Commit fcf1d88

Browse files
committed
Fixed an issue that would crash userPermissions if no submissionId was provided.
1 parent a0e7b81 commit fcf1d88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Formio.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ export default class Formio {
560560
return NativePromise.all([
561561
(form !== undefined) ? NativePromise.resolve(form) : this.loadForm(),
562562
(user !== undefined) ? NativePromise.resolve(user) : this.currentUser(),
563-
(submission !== undefined) ? NativePromise.resolve(submission) : this.loadSubmission(),
563+
(submission !== undefined || !this.submissionId) ? NativePromise.resolve(submission) : this.loadSubmission(),
564564
this.accessInfo()
565565
]).then((results) => {
566566
const form = results.shift();

0 commit comments

Comments
 (0)