fix(edge/stacks): ignore missing file [EE-5649] (#9127)
parent
f293ea41d3
commit
ceabb2884b
|
@ -12,7 +12,7 @@
|
|||
|
||||
<div style="padding: 20px">
|
||||
<edit-edge-stack-form
|
||||
ng-if="$ctrl.edgeGroups && $ctrl.stack && $ctrl.formValues.content"
|
||||
ng-if="$ctrl.edgeGroups && $ctrl.stack && $ctrl.formValues.content !== null"
|
||||
edge-groups="$ctrl.edgeGroups"
|
||||
edge-stack="$ctrl.stack"
|
||||
is-submitting="$ctrl.state.actionInProgress"
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue