Skip to content

Commit

Permalink
refactor: replaces PromiseManyArray.filter with PromiseManyArray.cont…
Browse files Browse the repository at this point in the history
…ent.filter

- because PromiseManyArray.filter no longer exists in Ember 5
  • Loading branch information
Pixelik committed Oct 7, 2023
1 parent d86d34a commit c6a2347
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addon/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ export function getValidatableValue(value) {
}

if (isDSManyArray(value)) {
return emberArray(value.filter((v) => isValidatable(v)));
value.content = value.content.filter((v) => isValidatable(v));
return emberArray(value);
}

return isValidatable(value) ? value : undefined;
Expand Down

0 comments on commit c6a2347

Please sign in to comment.