From 56ffbf59d1e459a6c7229d141ccc6774dc8055d0 Mon Sep 17 00:00:00 2001 From: towfiqi Date: Thu, 22 Feb 2024 19:15:08 +0600 Subject: [PATCH] fix: Resolves App not reloading on Scraper setup. --- components/settings/Settings.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/settings/Settings.tsx b/components/settings/Settings.tsx index b0def46..32b5b43 100644 --- a/components/settings/Settings.tsx +++ b/components/settings/Settings.tsx @@ -82,6 +82,10 @@ const Settings = ({ closeSettings }:SettingsProps) => { } else { // Perform Update updateMutate(settings); + // If Scraper is updated, refresh the page. + if (appSettings.settings === 'none' && scraper_type !== 'none') { + window.location.reload(); + } } };