We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7cb26f commit 728f1ebCopy full SHA for 728f1eb
app/pages/project/disks/DisksPage.tsx
@@ -104,7 +104,7 @@ export function DisksPage() {
104
},
105
})
106
107
- const createSnapshot = useApiMutation('snapshotCreate', {
+ const { mutate: createSnapshot } = useApiMutation('snapshotCreate', {
108
onSuccess() {
109
queryClient.invalidateQueries('snapshotList')
110
addToast({ content: 'Snapshot successfully created' })
@@ -124,7 +124,7 @@ export function DisksPage() {
124
label: 'Snapshot',
125
onActivate() {
126
addToast({ title: `Creating snapshot of disk '${disk.name}'` })
127
- createSnapshot.mutate({
+ createSnapshot({
128
query: { project },
129
body: {
130
name: genName(disk.name),
0 commit comments