1
0
Fork 0
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:
Chaim Lev-Ari 2023-06-29 13:32:04 +07:00 committed by GitHub
parent f293ea41d3
commit ceabb2884b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View file

@ -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;