Skip to content

Commit bb8273b

Browse files
committed
add imageId querystate
1 parent 257344a commit bb8273b

File tree

1 file changed

+12
-2
lines changed
  • app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/charts

1 file changed

+12
-2
lines changed

app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/charts/page.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,29 @@ const Charts = () => {
1414
);
1515

1616
const [chartId, setChartId] = useQueryState('id', parseAsString);
17+
const [imageId, setImageId] = useQueryState('id', parseAsString);
1718

1819
return (
1920
<div className=" mt-6">
2021
{type === 'list' ? (
21-
<ChartsList setType={setType} type={type} setChartId={setChartId} />
22+
<ChartsList
23+
setType={setType}
24+
type={type}
25+
setChartId={setChartId}
26+
setImageId={setImageId}
27+
/>
2228
) : type === 'visualize' ? (
2329
<ChartsVisualize
2430
setType={setType}
2531
chartId={chartId}
2632
setChartId={setChartId}
2733
/>
2834
) : (
29-
<ChartsImage setType={setType} />
35+
<ChartsImage
36+
setType={setType}
37+
imageId={imageId}
38+
setImageId={setImageId}
39+
/>
3040
)}
3141
</div>
3242
);

0 commit comments

Comments
 (0)