Skip to content

Commit 20351fe

Browse files
committed
fix ESModulesLinkingWarning
1 parent 21c7532 commit 20351fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/CodeViewer/CodeInterpreter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Button, Icon, RadioGroup, Tooltip } from '@clickhouse/click-ui/bundled'
22
import { createClient as createWebClient } from '@clickhouse/client-web'
3-
import { parse } from 'json5'
3+
import JSON5 from 'json5'
44
import { useEffect, useState } from 'react'
55
import short from 'short-uuid'
66
import CodeResults, { DefaultView } from './CodeResults'
@@ -90,7 +90,7 @@ function CodeInterpreter({
9090
params.forEach((param) => {
9191
if (param.type && /^(Array|Map|Tuple|Nested)/.test(param.type)) {
9292
try {
93-
query_params[param.name] = parse(param.value)
93+
query_params[param.name] = JSON5.parse(param.value)
9494
} catch (e) {
9595
// just send and let clickhouse error
9696
query_params[param.name] = param.value

0 commit comments

Comments
 (0)