Skip to content

Commit

Permalink
Chore(p-gslide): Error log
Browse files Browse the repository at this point in the history
  • Loading branch information
Vija02 committed Feb 20, 2025
1 parent b4c8a88 commit 9985f36
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions plugins/google-slides/view/Remote/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,19 @@ const Remote = () => {

const id = docs[picker.Document.ID];

selectSlideMutation.mutate({
pluginId: pluginContext.pluginId,
presentationId: id,
token: token,
});
selectSlideMutation.mutate(
{
pluginId: pluginContext.pluginId,
presentationId: id,
token: token,
},
{
onError: (err) => {
pluginApi.log.error({ err }, "Error selecting slide");
pluginApi.remote.toast.error("Failed to select slide");
},
},
);
}
}
}}
Expand Down

0 comments on commit 9985f36

Please sign in to comment.