From 409b61a86ec637005afd61cb95d6067b28308575 Mon Sep 17 00:00:00 2001 From: keven Date: Wed, 17 Sep 2025 10:01:28 -0300 Subject: [PATCH] =?UTF-8?q?[MVPTN-64]=20fix(Tipagem):=20Remo=C3=A7=C3=A3o?= =?UTF-8?q?=20das=20tipagem=20de=20sa=C3=ADda?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../_data/GTRegimeComunhao/GTBRegimeComunhaoIndexData.ts | 2 +- .../_hooks/g_tb_regimecomunhao/useGTBRegimeComunhaoReadHook.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/(protected)/(cadastros)/cadastros/_data/GTRegimeComunhao/GTBRegimeComunhaoIndexData.ts b/src/app/(protected)/(cadastros)/cadastros/_data/GTRegimeComunhao/GTBRegimeComunhaoIndexData.ts index f9fd91a..4dd3d24 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_data/GTRegimeComunhao/GTBRegimeComunhaoIndexData.ts +++ b/src/app/(protected)/(cadastros)/cadastros/_data/GTRegimeComunhao/GTBRegimeComunhaoIndexData.ts @@ -2,7 +2,7 @@ import API from "@/services/api/Api"; import GTBRegimeComunhaoInterface from "../../_interfaces/GTBRegimeComunhaoInterface"; import { Methods } from "@/services/api/enums/ApiMethodEnum"; -export default async function GTBRegimeComunhaoIndexData(): Promise { +export default async function GTBRegimeComunhaoIndexData() { const api = new API(); diff --git a/src/app/(protected)/(cadastros)/cadastros/_hooks/g_tb_regimecomunhao/useGTBRegimeComunhaoReadHook.ts b/src/app/(protected)/(cadastros)/cadastros/_hooks/g_tb_regimecomunhao/useGTBRegimeComunhaoReadHook.ts index 73de8d0..1d1ff3a 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_hooks/g_tb_regimecomunhao/useGTBRegimeComunhaoReadHook.ts +++ b/src/app/(protected)/(cadastros)/cadastros/_hooks/g_tb_regimecomunhao/useGTBRegimeComunhaoReadHook.ts @@ -6,7 +6,7 @@ import GTBRegimeComunhaoIndexService from "../../_services/g_tb_regimecomunhao/G export const useGTBRegimeComunhaoReadHook = () => { const { setResponse } = useResponse(); - const [gTBRegimeComunhao, setGTBRegimeComunhao] = useState(null); + const [gTBRegimeComunhao, setGTBRegimeComunhao] = useState([]); const fetchGTBRegimeComunhao = async () => {