diff --git a/src/electron/frontend/core/components/pages/uploads/UploadsPage.js b/src/electron/frontend/core/components/pages/uploads/UploadsPage.js index a0cf64557..b74da14eb 100644 --- a/src/electron/frontend/core/components/pages/uploads/UploadsPage.js +++ b/src/electron/frontend/core/components/pages/uploads/UploadsPage.js @@ -253,9 +253,10 @@ export class UploadsPage extends Page { merge(apiKeys, globalDandiData.api_keys); global.save(); - await regenerateDandisets(); - const input = this.form.getFormElement(["dandiset"]); - input.requestUpdate(); + regenerateDandisets().then(() => { + const input = this.form.getFormElement(["dandiset"]); + input.requestUpdate(); + }) }, formProps: { validateOnChange: async (name, parent) => {