Skip to content

Commit efe135b

Browse files
committed
Remove entity in chart data query in case of individual dashboard
1 parent b5f8b4d commit efe135b

File tree

1 file changed

+2
-2
lines changed
  • app/[locale]/dashboard/[entityType]/[entitySlug]/charts/components

1 file changed

+2
-2
lines changed

app/[locale]/dashboard/[entityType]/[entitySlug]/charts/components/ChartsList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ const ChartsList: React.FC<ChartsListProps> = ({
127127
} = useQuery([`chartList`], () =>
128128
GraphQL(
129129
getAllCharts,
130-
{
130+
params.entityType !== 'self' ? {
131131
[params.entityType]: params.entitySlug,
132-
},
132+
} : {},
133133
[]
134134
)
135135
);

0 commit comments

Comments
 (0)