Skip to content

Commit

Permalink
fix:useSkillsQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
Onelevenvy committed Sep 24, 2024
1 parent 4f807ef commit 9812bfe
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions web/src/app/(applayout)/skills/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,13 @@ import {
import { useTabSearchParams } from "@/hooks/useTabSearchparams";
import TabSlider from "@/components/Common/TabSlider";
import { useTranslation } from "react-i18next";
import { useSkillsQuery } from "@/hooks/useSkillsQuery";

function Skills() {
const showToast = useCustomToast();
const { t } = useTranslation();
const {
data: skills,
isLoading,
isError,
error,
} = useQuery("skills", () => SkillsService.readSkills({}));

const { data: skills, isLoading, isError, error } = useSkillsQuery();
if (isError) {
const errDetail = (error as ApiError).body?.detail;
showToast("Something went wrong.", `${errDetail}`, "error");
Expand Down

0 comments on commit 9812bfe

Please sign in to comment.