From 5f4b1f57f5e557d381dad8b9b154e112915408a0 Mon Sep 17 00:00:00 2001 From: Jonas Metzener Date: Tue, 19 Mar 2024 12:03:26 +0100 Subject: [PATCH] fix(form): fix caluma store clear method --- packages/form/addon/services/caluma-store.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/form/addon/services/caluma-store.js b/packages/form/addon/services/caluma-store.js index d5c87b4c9..23e8f86d4 100644 --- a/packages/form/addon/services/caluma-store.js +++ b/packages/form/addon/services/caluma-store.js @@ -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"; @@ -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