Skip to content

Commit

Permalink
fix(frontend/activities): work around ember-changeset so saving edite…
Browse files Browse the repository at this point in the history
…d activities works again
  • Loading branch information
c0rydoras committed Feb 26, 2025
1 parent 66f6a3f commit 80cb8c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/app/index/activities/edit/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { timeout } from "ember-concurrency";
export default class IndexActivitiesEditController extends Controller {
@service notify;
@service router;
@service store;
@tracked changeset;

/**
Expand Down Expand Up @@ -56,6 +57,11 @@ export default class IndexActivitiesEditController extends Controller {
}

try {
// workaround for "Error: Unable to `mergeDeep` with your data."
this.changeset.task = this.store.peekRecord(
"task",
this.changeset.task.id,
);
await this.changeset.save();

this.notify.success("Activity was saved");
Expand Down

0 comments on commit 80cb8c6

Please sign in to comment.