mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-21 00:02:30 +00:00
stop the variables page opening a drawer for the instance settings hash (#11129)
Claude-Session: https://claude.ai/code/session_01LCt167dnWJ2EVnLpkHATh4 Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
96963080f1
commit
082d897328
@@ -264,7 +264,9 @@
|
||||
let handledHash = ''
|
||||
$effect(() => {
|
||||
const hash = $page.url.hash
|
||||
if (hash.length <= 1) {
|
||||
// Only item paths are drawer targets: the same hash also carries global
|
||||
// drawers like #superadmin-settings, which must not be looked up as a variable.
|
||||
if (!/^#[ufg]\//.test(hash)) {
|
||||
// Navigating away from a drawer target must clear the tracker, or
|
||||
// re-targeting the same item later would be skipped as already handled.
|
||||
handledHash = ''
|
||||
|
||||
Reference in New Issue
Block a user