Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ymc9 committed Jun 30, 2024
1 parent 94f79e5 commit 01f6ea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime/src/enhancements/query-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,6 @@ export class QueryUtils {
* Clones an object and makes sure it's not empty.
*/
safeClone(value: unknown): any {
return value ? clone(value) : typeof value === 'object' ? {} : value;
return value ? clone(value) : value === undefined || value === null ? {} : value;
}
}

0 comments on commit 01f6ea7

Please sign in to comment.