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 fbf483b..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 () => {