Skip to content

Commit

Permalink
Convert DSArray to Array
Browse files Browse the repository at this point in the history
Convert DSArray to Array before wrapping in EmberArray, avoid ember-data `no-a-with-array-like` deprecation
  • Loading branch information
bekzod authored Apr 19, 2023
1 parent a21ea00 commit 82a5816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function getValidatableValue(value) {
}

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

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

0 comments on commit 82a5816

Please sign in to comment.