mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-12 22:42:13 +02:00
chore: commit all changes
This commit is contained in:
parent
5d380faaad
commit
15fdfeb3cf
1 changed files with 6 additions and 2 deletions
|
|
@ -43,6 +43,10 @@ const OnboardPage = () => {
|
||||||
const [showAdvancedSettings, setShowAdvancedSettings] = useState(false);
|
const [showAdvancedSettings, setShowAdvancedSettings] = useState(false);
|
||||||
const [showPromptSettings, setShowPromptSettings] = useState(false);
|
const [showPromptSettings, setShowPromptSettings] = useState(false);
|
||||||
|
|
||||||
|
const handleRefreshPreferences = useCallback(async () => {
|
||||||
|
await refreshPreferences()
|
||||||
|
},[])
|
||||||
|
|
||||||
// Track if we've already attempted auto-configuration
|
// Track if we've already attempted auto-configuration
|
||||||
const hasAttemptedAutoConfig = useRef(false);
|
const hasAttemptedAutoConfig = useRef(false);
|
||||||
|
|
||||||
|
|
@ -178,7 +182,7 @@ const OnboardPage = () => {
|
||||||
}
|
}
|
||||||
onConfigCreated={() => refreshConfigs()}
|
onConfigCreated={() => refreshConfigs()}
|
||||||
onConfigDeleted={() => refreshConfigs()}
|
onConfigDeleted={() => refreshConfigs()}
|
||||||
onPreferencesUpdated={refreshPreferences}
|
onPreferencesUpdated={handleRefreshPreferences}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -270,7 +274,7 @@ const OnboardPage = () => {
|
||||||
setShowPromptSettings={setShowPromptSettings}
|
setShowPromptSettings={setShowPromptSettings}
|
||||||
onConfigCreated={() => refreshConfigs()}
|
onConfigCreated={() => refreshConfigs()}
|
||||||
onConfigDeleted={() => refreshConfigs()}
|
onConfigDeleted={() => refreshConfigs()}
|
||||||
onPreferencesUpdated={refreshPreferences}
|
onPreferencesUpdated={handleRefreshPreferences}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* Footer */}
|
{/* Footer */}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue