Skip to content

Commit

Permalink
fix(form): fix caluma store clear method
Browse files Browse the repository at this point in the history
  • Loading branch information
anehx committed Mar 19, 2024
1 parent 8db9160 commit 5f4b1f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/form/addon/services/caluma-store.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { assert, debug } from "@ember/debug";
import { destroy } from "@ember/destroyable";
import { set } from "@ember/object";
import Service from "@ember/service";

Expand Down Expand Up @@ -41,7 +42,7 @@ export default class CalumaStoreService extends Service {
}

clear() {
this._store.forEach((obj) => obj.destroy());
this._store.forEach((obj) => destroy(obj));

// `this._store` is not an ember array but a native map
// eslint-disable-next-line ember/no-array-prototype-extensions
Expand Down

0 comments on commit 5f4b1f5

Please sign in to comment.