Skip to content

Commit

Permalink
fix(forkJoin): test for object literal not observable
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant committed Apr 26, 2019
1 parent 08782ea commit c16ffaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/observable/forkJoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export function forkJoin(
return forkJoinInternal(first, null);
}
// TODO(benlesh): isObservable check will not be necessary when deprecated path is removed.
if (isObject(first) && !isObservable(first)) {
if (isObject(first) && Object.getPrototypeOf(first) === Object.prototype) {
const keys = Object.keys(first);
return forkJoinInternal(keys.map(key => first[key]), keys);
}
Expand Down

0 comments on commit c16ffaf

Please sign in to comment.