fix(desktop): use store dir for unified store path (#5799)

The desktop shell was reading from `instance/hoppscotch-unified.store` while the webapp writes to `store/hoppscotch-unified.store`. This caused the app to lose track of the last connected instance on restart.

Closes FE-1121
This commit is contained in:
Shreyas 2026-01-23 18:20:00 +05:30 committed by GitHub
parent c64928885f
commit 6348d17955
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,10 +33,10 @@ export const getInstanceDir = async (): Promise<string> => {
const getStorePath = async (): Promise<string> => { const getStorePath = async (): Promise<string> => {
try { try {
const instanceDir = await getInstanceDir() const storeDir = await getStoreDir()
return join(instanceDir, STORE_PATH) return join(storeDir, STORE_PATH)
} catch (error) { } catch (error) {
console.error("Failed to get instance directory:", error) console.error("Failed to get store directory:", error)
return "hoppscotch-unified.store" return "hoppscotch-unified.store"
} }
} }