Skip to content

Commit 916f606

Browse files
committed
Apparently we need to null check here
1 parent 04d6605 commit 916f606

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/dialogs/secretstorage/AccessSecretStorageDialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export default class AccessSecretStorageDialog extends React.PureComponent {
110110

111111
// also clear the file upload control so that the user can upload the same file
112112
// the did before (otherwise the onchange wouldn't fire)
113-
this._fileUpload.current.value = null;
113+
if (this._fileUpload.current) this._fileUpload.current.value = null;
114114

115115

116116
// We don't use Field's validation here because a) we want it in a separate place rather

0 commit comments

Comments
 (0)