@akanjs/store 0.0.145 → 0.0.146
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,7 @@ 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
|
-
|
|
527
|
-
state[names.modelForm].id = id;
|
|
528
|
-
});
|
|
526
|
+
//! 이거 왜넣었지
|
|
529
527
|
const model = await gql[names.model](id, { onError });
|
|
530
528
|
const modelForm = (0, import_common.deepObjectify)(model);
|
|
531
529
|
this.set({
|
|
@@ -508,9 +508,7 @@ 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
|
-
|
|
512
|
-
state[names.modelForm].id = id;
|
|
513
|
-
});
|
|
511
|
+
//! 이거 왜넣었지
|
|
514
512
|
const model = await gql[names.model](id, { onError });
|
|
515
513
|
const modelForm = deepObjectify(model);
|
|
516
514
|
this.set({
|