@akanjs/store 0.0.145 → 0.0.147
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -523,9 +523,6 @@ const makeActions = (gql) => {
|
|
|
523
523
|
[names.editModel]: async function(modelOrId, { modal, onError } = {}) {
|
|
524
524
|
const id = typeof modelOrId === "string" ? modelOrId : modelOrId.id;
|
|
525
525
|
this.set({ [names.modelFormLoading]: id, [names.modelModal]: modal ?? "edit" });
|
|
526
|
-
this.set((state) => {
|
|
527
|
-
state[names.modelForm].id = id;
|
|
528
|
-
});
|
|
529
526
|
const model = await gql[names.model](id, { onError });
|
|
530
527
|
const modelForm = (0, import_common.deepObjectify)(model);
|
|
531
528
|
this.set({
|
|
@@ -508,9 +508,6 @@ const makeActions = (gql) => {
|
|
|
508
508
|
[names.editModel]: async function(modelOrId, { modal, onError } = {}) {
|
|
509
509
|
const id = typeof modelOrId === "string" ? modelOrId : modelOrId.id;
|
|
510
510
|
this.set({ [names.modelFormLoading]: id, [names.modelModal]: modal ?? "edit" });
|
|
511
|
-
this.set((state) => {
|
|
512
|
-
state[names.modelForm].id = id;
|
|
513
|
-
});
|
|
514
511
|
const model = await gql[names.model](id, { onError });
|
|
515
512
|
const modelForm = deepObjectify(model);
|
|
516
513
|
this.set({
|