API/show_block_devices: add option for remote devices

This commit is contained in:
Johannes Kirschbauer
2024-08-16 12:17:52 +02:00
parent b29f649343
commit 340babd348
2 changed files with 34 additions and 5 deletions

View File

@@ -83,7 +83,7 @@ export const Flash = () => {
const deviceQuery = createQuery(() => ({
queryKey: ["block_devices"],
queryFn: async () => {
const result = await callApi("show_block_devices", {});
const result = await callApi("show_block_devices", { options: {} });
if (result.status === "error") throw new Error("Failed to fetch data");
return result.data;
},