Fix create M2M field concurrency (#9220)

* fix create m2m field concurrency

* remove unused import

* Re-add missing store

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
This commit is contained in:
José Varela
2021-11-24 21:18:18 +00:00
committed by GitHub
parent bebea58a88
commit ebd17abae2
2 changed files with 3 additions and 4 deletions

View File

@@ -173,6 +173,8 @@ export const useFieldDetailStore = defineStore({
for (const collection of Object.keys(this.items)) {
await api.post(`/items/${collection}`, this.items[collection]);
}
await fieldsStore.hydrate();
} catch (err: any) {
unexpectedError(err);
} finally {