Skip to content

Commit

Permalink
feat: rollback check if is an array obj
Browse files Browse the repository at this point in the history
  • Loading branch information
annacv committed Mar 26, 2024
1 parent 4818bd8 commit 1a7ba07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/x-components/src/composables/use-hybrid-inject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const makeInjectionReactive = <SomeValue>(
) {
const xRefValue = injection.value;

if (xRefValue && typeof xRefValue === 'object' && !Array.isArray(xRefValue)) {
if (xRefValue && typeof xRefValue === 'object') {
return reactive(xRefValue);
} else {
return ref<SomeValue>(xRefValue);
Expand Down

0 comments on commit 1a7ba07

Please sign in to comment.