mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 13:19:16 -05:00
made ModelEditor setupState function properly handle async requests
This commit is contained in:
@@ -48,9 +48,7 @@ onMounted(() => {
|
||||
useMessageStore().addError(ErrorMessageType.FETCH_ERROR, err)
|
||||
})
|
||||
|
||||
if (!setupState(props.item, props.itemId)) {
|
||||
// functions to populate defaults
|
||||
}
|
||||
setupState(props.item, props.itemId)
|
||||
})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user