Skip to content

Commit

Permalink
Fix DANDI rendering block (#642)
Browse files Browse the repository at this point in the history
Co-authored-by: Cody Baker <[email protected]>
  • Loading branch information
garrettmflynn and CodyCBakerPhD authored Mar 10, 2024
1 parent 1a86f2f commit e5156f4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions schemas/dandi-upload.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -123,6 +120,6 @@ export const addDandiset = async (info) => {
return idInfo
}

regenerateDandisets({ newPromise: false })
regenerateDandisets()

export default schema

0 comments on commit e5156f4

Please sign in to comment.