mirror of
https://github.com/stashapp/stash.git
synced 2026-05-09 05:05:29 +02:00
remove my thought process
This commit is contained in:
parent
80dc38bc6f
commit
76140b1437
1 changed files with 0 additions and 3 deletions
|
|
@ -38,8 +38,6 @@ export const AutoTagConfirmDialog: React.FC<IAutoTagConfirmDialog> = ({
|
|||
const Toast = useToast();
|
||||
const [dontShowAgain, setDontShowAgain] = useState(false);
|
||||
const [configureInterface] = useConfigureInterface();
|
||||
// route through SettingsContext when available so the Settings panel's
|
||||
// local state reflects the change without a page refresh
|
||||
const settingsContext = useContext(SettingStateContext);
|
||||
|
||||
useEffect(() => {
|
||||
|
|
@ -51,7 +49,6 @@ export const AutoTagConfirmDialog: React.FC<IAutoTagConfirmDialog> = ({
|
|||
function handleConfirm() {
|
||||
if (dontShowAgain) {
|
||||
if (settingsContext) {
|
||||
// context's saveInterface already surfaces errors via its own toast
|
||||
settingsContext.saveInterface({ disableAutoTagWarning: true });
|
||||
} else {
|
||||
configureInterface({
|
||||
|
|
|
|||
Loading…
Reference in a new issue