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 56a6df0 commit 5df4ae9Copy full SHA for 5df4ae9
src/helpers/use-editable-control.tsx
@@ -11,7 +11,7 @@ export function useEditableControl() {
11
const toasterId = useId("toaster");
12
const { dispatchToast } = useToastController(toasterId);
13
14
- const onSaveChanges = useCallback(async (worker: () => Promise<{ success: boolean; message: string; }>) => {
+ const onSaveChanges = useCallback(async (worker: () => Promise<{ success: boolean; message?: string; }>) => {
15
setShowProgress(true);
16
const success = await worker();
17
setShowProgress(false);
0 commit comments