From f7cd5e03759a6ba259ecb7b2d2e4d5629ee884cd Mon Sep 17 00:00:00 2001 From: Derick Montague Date: Tue, 11 May 2021 17:02:00 -0500 Subject: 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 Change-Id: If0009810aaf3b9abd23fcdc41606fbdbcf17a347 --- src/store/modules/Configuration/FirmwareStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/Configuration/FirmwareStore.js b/src/store/modules/Configuration/FirmwareStore.js index 3b4bd853..c6639ff7 100644 --- a/src/store/modules/Configuration/FirmwareStore.js +++ b/src/store/modules/Configuration/FirmwareStore.js @@ -115,7 +115,7 @@ const FirmwareStore = { ]; commit('setApplyTime', applyTime); - if (allowableActions.includes('TFTP')) { + if (allowableActions?.includes('TFTP')) { commit('setTftpUploadAvailable', true); } }) -- cgit v1.2.3