Skip to content

Commit

Permalink
fix: json-bigint hasOwnProperty undefined issue (#1129)
Browse files Browse the repository at this point in the history
* fix: json-bigint hasOwnProperty undefined issue

* use cloneDeep
  • Loading branch information
jczhong84 authored Jan 19, 2023
1 parent ac22884 commit 7cdb1db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion querybook/webapp/lib/query-result/transformer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import JSONBig from 'json-bigint';
import { cloneDeep } from 'lodash';
import React from 'react';
import ReactJson, { ThemeObject } from 'react-json-view';

Expand Down Expand Up @@ -107,7 +108,7 @@ const queryResultTransformers: IColumnTransformer[] = [

// This is a workaround for https://github.com/sidorares/json-bigint/issues/38
// to make sure it is of `Object` prototype when passed over to <ReactJson />
const jsonSrc = { ...json };
const jsonSrc = cloneDeep(json);

return (
<ReactJson
Expand Down

0 comments on commit 7cdb1db

Please sign in to comment.