Skip to content

Commit bc47249

Browse files
authored
Merge pull request #4416 from jeclrsg/fix-comms-empty-file-protect-list
fix(comms): default ProtectList to an empty array
2 parents ef271e1 + 460596c commit bc47249

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)