diff --git a/apps/deploy-web/src/queries/queryKeys.ts b/apps/deploy-web/src/queries/queryKeys.ts index b45347522..efc9b8a51 100644 --- a/apps/deploy-web/src/queries/queryKeys.ts +++ b/apps/deploy-web/src/queries/queryKeys.ts @@ -42,7 +42,6 @@ export class QueryKeys { static getBlockKey = (id: string) => ["BLOCK", id]; static getBalancesKey = (address?: string) => (address ? ["BALANCES", address] : []); static getTemplatesKey = () => ["TEMPLATES"]; - static getTemplateKey = (id: string) => ["TEMPLATES", id]; static getProviderAttributesSchema = () => ["PROVIDER_ATTRIBUTES_SCHEMA"]; static getDepositParamsKey = () => ["DEPOSIT_PARAMS"]; static getGpuModelsKey = () => ["GPU_MODELS"]; diff --git a/apps/deploy-web/src/queries/useTemplateQuery.tsx b/apps/deploy-web/src/queries/useTemplateQuery.tsx index e4d493810..4214ccaaa 100644 --- a/apps/deploy-web/src/queries/useTemplateQuery.tsx +++ b/apps/deploy-web/src/queries/useTemplateQuery.tsx @@ -133,7 +133,3 @@ export function useTemplates(options = {}) { refetchOnReconnect: false }); } - -export function useTemplateById(id: string, options: UseQueryOptions = {}): UseQueryResult { - return useQuery(QueryKeys.getTemplateKey(id), () => services.template.findById(id), options); -}