fix cloning

This commit is contained in:
vcoppe
2025-11-25 18:22:51 +01:00
parent 46fcdb4bb2
commit e230d55b82

View File

@@ -17,6 +17,9 @@ import {
import { immerable, isDraft, original, freeze } from 'immer';
function cloneJSON<T>(obj: T): T {
if (obj === undefined) {
return undefined;
}
if (obj === null || typeof obj !== 'object') {
return null;
}