From 33c7044fd824328c1211e349298e3e9373a59ea7 Mon Sep 17 00:00:00 2001 From: Laura BERGOENS <48727874+laura-bergoens@users.noreply.github.com> Date: Thu, 3 Oct 2024 21:38:02 +0200 Subject: [PATCH] fix typo in relationships.md doc (#2059) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Iris Benoît Co-authored-by: Jérémie Jadé Co-authored-by: Nicolas Lepage Co-authored-by: Guillaume Lagorce Co-authored-by: Fael Bassetti --- guides/release/models/relationships.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/release/models/relationships.md b/guides/release/models/relationships.md index eea0b4dac3..da86fa4144 100644 --- a/guides/release/models/relationships.md +++ b/guides/release/models/relationships.md @@ -468,7 +468,7 @@ It is also possible to remove a record from a `hasMany` relationship: let blogPost = this.store.peekRecord('blog-post', 1); let commentToRemove = this.store.peekRecord('comment', 1); let comments = await blogPost.comments; -blockPost.comments = comments.filter((comment) => comment !== commentToRemove); +blogPost.comments = comments.filter((comment) => comment !== commentToRemove); blogPost.save(); ```