Skip to content

Commit

Permalink
GUI Library: update pipelineLibrary after folder rename to fix breadc…
Browse files Browse the repository at this point in the history
…rumbs stale data
  • Loading branch information
AleksandrGorodetskii committed Aug 15, 2023
1 parent 0cf5bbc commit 2d2e85a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions client/src/components/pipelines/browser/Folder.js
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,10 @@ export default class Folder extends localization.LocalizedReactComponent {
message.error(request.error, 5);
} else {
this.closeRenameFolderDialog();
await this.props.folder.fetch();
await Promise.all([
this.props.pipelinesLibrary.fetch(),
this.props.folder.fetch()
]);
if (this.props.onReloadTree) {
this.props.onReloadTree(!this._currentFolder.folder.parentId);
}
Expand All @@ -718,7 +721,10 @@ export default class Folder extends localization.LocalizedReactComponent {
message.error(request.error, 5);
} else {
this.closeRenameFolderDialog();
await this.props.folder.fetch();
await Promise.all([
this.props.pipelinesLibrary.fetch(),
this.props.folder.fetch()
]);
if (this.props.onReloadTree) {
this.props.onReloadTree(!this._currentFolder.folder.parentId);
}
Expand Down

0 comments on commit 2d2e85a

Please sign in to comment.