fix: useAtomGetEventTypes pathname (#19637)

This commit is contained in:
Morgan
2025-03-01 03:04:16 +00:00
committed by GitHub
parent 2600a6c3d5
commit cbd8525c39
@@ -11,7 +11,7 @@ export const QUERY_KEY = "use-get-event-types";
type ResponseEventType = { eventTypes: Array<{ id: number; title: string }> };
export const useAtomGetEventTypes = () => {
const pathname = `/atoms/${V2_ENDPOINTS.eventTypes}/`;
const pathname = `/atoms/${V2_ENDPOINTS.eventTypes}`;
const { isInit, accessToken } = useAtomsContext();
return useQuery({