Skip to content

Commit fd4ab00

Browse files
jeclrsgGordonSmith
authored andcommitted
fix(comms): default ProtectList to an empty array
default ProtectList to an empty array when excluded in the response from ESP Signed-off-by: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com>
1 parent 8941789 commit fd4ab00

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/comms/src/ecl/logicalFile.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ export class LogicalFile extends StateObject<FileDetailEx, FileDetailEx> impleme
151151
return this.connection.DFUInfo({ Cluster: this.Cluster, Name: this.Name }).then(response => {
152152
this.set({
153153
Cluster: this.Cluster,
154-
...response.FileDetail
154+
...response.FileDetail,
155+
ProtectList: response?.FileDetail?.ProtectList ?? { DFUFileProtect: [] }
155156
});
156157
return response.FileDetail;
157158
}).catch((e: ESPExceptions) => {

0 commit comments

Comments
 (0)