refac
This commit is contained in:
@@ -729,6 +729,10 @@
|
||||
);
|
||||
};
|
||||
|
||||
$: if ($terminalServers !== null && $selectedTerminalId && !isTerminalAvailable($selectedTerminalId)) {
|
||||
selectedTerminalId.set(null);
|
||||
}
|
||||
|
||||
let settingDefaults = false;
|
||||
const setDefaults = async () => {
|
||||
if (settingDefaults) return;
|
||||
@@ -1286,11 +1290,6 @@
|
||||
});
|
||||
}
|
||||
|
||||
// Clear stale selectedTerminalId if the referenced terminal no longer exists
|
||||
if ($selectedTerminalId && !isTerminalAvailable($selectedTerminalId)) {
|
||||
selectedTerminalId.set(null);
|
||||
}
|
||||
|
||||
const pageSubscribe = page.subscribe(async (p) => {
|
||||
if (p.url.pathname === '/' || p.url.pathname.startsWith('/folders/')) {
|
||||
await tick();
|
||||
|
||||
Reference in New Issue
Block a user