Skip to content

Commit

Permalink
♻️ refacto PageService.proto.pageTree: Use Array.proto.slice instead …
Browse files Browse the repository at this point in the history
…of RecordArray.proto.toArray to fix ember-data:deprecate-array-like deprec
  • Loading branch information
bartocc committed Dec 17, 2023
1 parent f7575c7 commit 42b689e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/services/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default class PageService extends Service {
@computed('pages')
get pageTree() {
let { pages } = this;
return buildPageTreeNode(pages.toArray ? pages.toArray() : pages);
return buildPageTreeNode(pages.slice ? pages.slice() : pages);
}

@computed('content.id', 'pageTree')
Expand Down

0 comments on commit 42b689e

Please sign in to comment.