Fix widget and front component queries hitting wrong GraphQL endpoint (#17889)

This commit is contained in:
nitin
2026-02-12 17:08:06 +05:30
committed by GitHub
parent eb52976e91
commit c48ccbca99
4 changed files with 1 additions and 14 deletions
@@ -1,4 +1,3 @@
import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient';
import { useObjectMetadataItemById } from '@/object-metadata/hooks/useObjectMetadataItemById';
import { type FieldMetadataItemOption } from '@/object-metadata/types/FieldMetadataItem';
import { BAR_CHART_DATA } from '@/page-layout/widgets/graph/graphql/queries/barChartData';
@@ -57,8 +56,6 @@ export const useGraphBarChartWidgetData = ({
objectId: objectMetadataItemId,
});
const apolloCoreClient = useApolloCoreClient();
const dataConfiguration = useMemo(
() => extractBarChartDataConfiguration(configuration),
[configuration],
@@ -70,7 +67,6 @@ export const useGraphBarChartWidgetData = ({
loading,
error,
} = useQuery(BAR_CHART_DATA, {
client: apolloCoreClient,
variables: {
input: {
objectMetadataId: objectMetadataItemId,
@@ -1,4 +1,3 @@
import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient';
import { useObjectMetadataItemById } from '@/object-metadata/hooks/useObjectMetadataItemById';
import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem';
import { LINE_CHART_DATA } from '@/page-layout/widgets/graph/graphql/queries/lineChartData';
@@ -46,8 +45,6 @@ export const useGraphLineChartWidgetData = ({
objectId: objectMetadataItemId,
});
const apolloCoreClient = useApolloCoreClient();
const dataConfiguration = extractLineChartDataConfiguration(configuration);
const {
@@ -55,7 +52,6 @@ export const useGraphLineChartWidgetData = ({
loading,
error,
} = useQuery(LINE_CHART_DATA, {
client: apolloCoreClient,
variables: {
input: {
objectMetadataId: objectMetadataItemId,
@@ -1,4 +1,3 @@
import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient';
import { useObjectMetadataItemById } from '@/object-metadata/hooks/useObjectMetadataItemById';
import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem';
import { PIE_CHART_DATA } from '@/page-layout/widgets/graph/graphql/queries/pieChartData';
@@ -42,8 +41,6 @@ export const useGraphPieChartWidgetData = ({
objectId: objectMetadataItemId,
});
const apolloCoreClient = useApolloCoreClient();
const dataConfiguration = useMemo(
() => extractPieChartDataConfiguration(configuration),
[configuration],
@@ -54,7 +51,6 @@ export const useGraphPieChartWidgetData = ({
loading,
error,
} = useQuery(PIE_CHART_DATA, {
client: apolloCoreClient,
variables: {
input: {
objectMetadataId: objectMetadataItemId,