Skip to content

Commit bf92a32

Browse files
derick-montaguerfrandse
authored andcommitted
Add check for allowableActions in firmware store
Using optional chaining to test that TFTP is included in the allowaableActions property to prevent an error being thrown if that property is not present. Signed-off-by: Derick Montague <[email protected]> Change-Id: If0009810aaf3b9abd23fcdc41606fbdbcf17a347
1 parent 42791db commit bf92a32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store/modules/Configuration/FirmwareStore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const FirmwareStore = {
115115
];
116116

117117
commit('setApplyTime', applyTime);
118-
if (allowableActions.includes('TFTP')) {
118+
if (allowableActions?.includes('TFTP')) {
119119
commit('setTftpUploadAvailable', true);
120120
}
121121
})

0 commit comments

Comments
 (0)