Skip to content

Commit

Permalink
web: Change source of the list of actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ancorgs committed Oct 30, 2024
1 parent 5cfbd32 commit 69c6439
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/src/api/storage/proposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const fetchDefaultVolume = (mountPath: string): Promise<Volume | undefined> => {

const fetchSettings = (): Promise<ProposalSettings> => get("/api/storage/proposal/settings");

const fetchActions = (): Promise<Action[]> => get("/api/storage/proposal/actions");
const fetchActions = (): Promise<Action[]> => get("/api/storage/devices/actions");

const calculate = (settings: ProposalSettingsPatch) =>
put("/api/storage/proposal/settings", settings);
Expand Down
2 changes: 1 addition & 1 deletion web/src/queries/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ const proposalSettingsQuery = {
};

const proposalActionsQuery = {
queryKey: ["storage", "proposal", "actions"],
queryKey: ["storage", "devices", "actions"],
queryFn: fetchActions,
};

Expand Down

0 comments on commit 69c6439

Please sign in to comment.