diff --git a/schemas/dandi-upload.schema.ts b/schemas/dandi-upload.schema.ts index a0b56d714..a226f2fa0 100644 --- a/schemas/dandi-upload.schema.ts +++ b/schemas/dandi-upload.schema.ts @@ -42,10 +42,7 @@ onServerOpen(async () => { }); // Resolve Dandiset Information Asynchronously -export const regenerateDandisets = async ({ - newPromise = true -} = {}) => { - if (newPromise) ready.dandisets = createPromise("dandiset") +export const regenerateDandisets = async () => { delete idSchema.enum delete idSchema.enumLabels delete idSchema.enumKeywords @@ -123,6 +120,6 @@ export const addDandiset = async (info) => { return idInfo } -regenerateDandisets({ newPromise: false }) +regenerateDandisets() export default schema