refactor api controller to internalize server fetch

This commit is contained in:
jeffvli
2025-11-02 21:56:35 -08:00
parent 8dbaec3943
commit c7a473d864
79 changed files with 904 additions and 399 deletions
@@ -48,6 +48,7 @@ export const ShareItemContextModal = ({
const handleSubmit = form.onSubmit(async (values) => {
shareItemMutation.mutate(
{
apiClientProps: { serverId: server?.id || '' },
body: {
description: values.description,
downloadable: values.allowDownloading,
@@ -55,7 +56,6 @@ export const ShareItemContextModal = ({
resourceIds: itemIds.join(),
resourceType,
},
serverId: server?.id,
},
{
onError: () => {