diff --git a/src/app/(protected)/(cadastros)/cadastros/_data/GTBRegimeBens/GTBRegimeBensIndexData.ts b/src/app/(protected)/(cadastros)/cadastros/_data/GTBRegimeBens/GTBRegimeBensIndexData.ts index ade4ede..c7dda24 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_data/GTBRegimeBens/GTBRegimeBensIndexData.ts +++ b/src/app/(protected)/(cadastros)/cadastros/_data/GTBRegimeBens/GTBRegimeBensIndexData.ts @@ -1,8 +1,7 @@ import API from "@/services/api/Api"; import { Methods } from "@/services/api/enums/ApiMethodEnum"; -import GTBRegimeBensInterface from "../../_interfaces/GTBRegimeBensInterface"; -export default async function GTBRegimeBensIndexData(): Promise { +export default async function GTBRegimeBensIndexData() { const api = new API(); diff --git a/src/app/(protected)/(cadastros)/cadastros/_hooks/g_tb_regimebens/useGTBRegimeBensReadHook.ts b/src/app/(protected)/(cadastros)/cadastros/_hooks/g_tb_regimebens/useGTBRegimeBensReadHook.ts index e72811a..9294db5 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_hooks/g_tb_regimebens/useGTBRegimeBensReadHook.ts +++ b/src/app/(protected)/(cadastros)/cadastros/_hooks/g_tb_regimebens/useGTBRegimeBensReadHook.ts @@ -6,7 +6,7 @@ import GTBRegimeBensInterface from "../../_interfaces/GTBRegimeBensInterface"; export const useGTBRegimeBensReadHook = () => { const { setResponse } = useResponse(); - const [gTBRegimeBens, setGTBRegimeBens] = useState(null); + const [gTBRegimeBens, setGTBRegimeBens] = useState([]); const fetchGTBRegimeBens = async () => { diff --git a/src/app/(protected)/(cadastros)/cadastros/_services/g_tb_regimebens/GTBRegimeBensIndexService.ts b/src/app/(protected)/(cadastros)/cadastros/_services/g_tb_regimebens/GTBRegimeBensIndexService.ts index b642bcf..b57f1f1 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_services/g_tb_regimebens/GTBRegimeBensIndexService.ts +++ b/src/app/(protected)/(cadastros)/cadastros/_services/g_tb_regimebens/GTBRegimeBensIndexService.ts @@ -1,7 +1,6 @@ import GTBRegimeBensIndexData from "../../_data/GTBRegimeBens/GTBRegimeBensIndexData"; -import GTBRegimeBensInterface from "../../_interfaces/GTBRegimeBensInterface"; -export default async function GTBRegimeBensIndexService(): Promise { +export default async function GTBRegimeBensIndexService() { const response = await GTBRegimeBensIndexData();