mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Toast fixes/refactoring (#4289)
* Memoize Toast functions * Rename Toast.success to Toast.toast, add new Toast.success * Disable prefer-destructuring on AssignmentExpression
This commit is contained in:
@@ -50,7 +50,7 @@ export const ReassignFilesDialog: React.FC<IReassignFilesDialogProps> = (
|
||||
setReassigning(true);
|
||||
try {
|
||||
await mutateSceneAssignFile(scenes[0].id, props.selected.id);
|
||||
Toast.success({ content: toastMessage });
|
||||
Toast.success(toastMessage);
|
||||
props.onClose();
|
||||
} catch (e) {
|
||||
Toast.error(e);
|
||||
|
||||
Reference in New Issue
Block a user