diff --git a/frontend/src/lib/components/RemoteServerPicker.svelte b/frontend/src/lib/components/RemoteServerPicker.svelte index 482a506c..ce16c502 100644 --- a/frontend/src/lib/components/RemoteServerPicker.svelte +++ b/frontend/src/lib/components/RemoteServerPicker.svelte @@ -165,6 +165,12 @@ // If the path is root and it is a valid install, don't list contents of root $: actualDisplayedItems = (valid && displayedPath === trimmedPath) ? [{ path: '', name: '(root)', isValidInstall: true }] : displayedItems; + + function isSamePath(path1: string, path2: string) { + let parts1 = _.compact(path1.split(pathSeparator)); + let parts2 = _.compact(path2.split(pathSeparator)); + return _.isEqual(parts1, parts2); + }