fix(edge/stacks): ignore missing file [EE-5649] (#9127)

This commit is contained in:
Chaim Lev-Ari
2023-06-29 13:32:04 +07:00
committed by GitHub
parent f293ea41d3
commit ceabb2884b
2 changed files with 7 additions and 3 deletions
@@ -22,7 +22,7 @@ export class EditEdgeStackViewController {
};
this.formValues = {
content: '',
content: null,
};
this.deployStack = this.deployStack.bind(this);
@@ -36,7 +36,11 @@ export class EditEdgeStackViewController {
const { stackId, tab } = this.$state.params;
this.state.activeTab = tab ? parseInt(tab, 10) : 0;
try {
const [edgeGroups, model, file] = await Promise.all([this.EdgeGroupService.groups(), this.EdgeStackService.stack(stackId), this.EdgeStackService.stackFile(stackId)]);
const [edgeGroups, model, file] = await Promise.all([
this.EdgeGroupService.groups(),
this.EdgeStackService.stack(stackId),
this.EdgeStackService.stackFile(stackId).catch(() => ''),
]);
this.edgeGroups = edgeGroups;
this.stack = model;