Skip to content

Commit b2c5d6f

Browse files
fix: guard signerUpdate when no file is selected
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 7f08be2 commit b2c5d6f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/store/files.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,9 @@ export const useFilesStore = function(...args) {
406406
}
407407
},
408408
signerUpdate(signer) {
409+
if (!this.selectedFileId || !this.files[this.selectedFileId]) {
410+
return
411+
}
409412
this.addIdentifierToSigner(signer)
410413
if (!this.getFile().signers?.length) {
411414
this.getFile().signers = []

0 commit comments

Comments
 (0)