UI/queries: remove unused argument

This commit is contained in:
Johannes Kirschbauer
2025-08-08 21:01:03 +02:00
parent c13741602c
commit aaff3b9b38

View File

@@ -142,18 +142,12 @@ export const useClanListQuery = (clanURIs: string[]): ClanListQueryResult => {
export type MachineFlashOptions = SuccessData<"get_machine_flash_options">;
export type MachineFlashOptionsQuery = UseQueryResult<MachineFlashOptions>;
export const useMachineFlashOptions = (
clanURI: string,
): MachineFlashOptionsQuery => {
export const useMachineFlashOptions = (): MachineFlashOptionsQuery => {
const client = useApiClient();
return useQuery<MachineFlashOptions>(() => ({
queryKey: ["clans", encodeBase64(clanURI), "machine_flash_options"],
queryKey: ["clans", "machine_flash_options"],
queryFn: async () => {
const call = client.fetch("get_machine_flash_options", {
flake: {
identifier: clanURI,
},
});
const call = client.fetch("get_machine_flash_options", {});
const result = await call.result;
if (result.status === "error") {