mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 06:19:41 +02:00
fix(edge/stacks): ignore missing file [EE-5649] (#9127)
This commit is contained in:
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue