Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implemented a mutatation function that updates the ui when selecting … #810

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

TT38665
Copy link
Member

@TT38665 TT38665 commented Oct 25, 2023

…a schema

@@ -90,6 +90,7 @@ function SchemaButton({ modelId, schema }: SchemaButtonProps) {
async function createModelUsingSchema(newSchema: SchemaInterface) {
if (currentUser && model) {
await postFromSchema(model.id, newSchema.id)
await mutateModel()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to await this mutate as we aren't expecting a response, it should happen in the background.

@TT38665 TT38665 merged commit 4aae658 into main Oct 25, 2023
@TT38665 TT38665 deleted the bugfix/BAI-952-ui-not-updating branch October 25, 2023 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants