diff --git a/src/util.ts b/src/util.ts index 2d527d3..7248e41 100644 --- a/src/util.ts +++ b/src/util.ts @@ -60,7 +60,7 @@ export function stringifyData(data: any): string { if(type) return { __t: type, - i: value.remoteId || value.id + i: typeof value.remoteId === 'number' ? value.remoteId : value.id }; }