Skip to content

Commit dffbd09

Browse files
author
Mitch Davis
committed
Simplified how sheet names are matched against "sheet" query arg
1 parent 4f6fd90 commit dffbd09

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎src/kicanvas/elements/kicanvas-shell.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,7 @@ class KiCanvasShellElement extends KCUIElement {
148148
target_page = page;
149149
break;
150150
}
151-
const match = page.project_path.match(/^([^:]+)/)!; // If there's a colon, only take the part before it
152-
const filenamePart = match[1]
153-
if (filenamePart == sheet_param) {
151+
if (page.filename === sheet_param) {
154152
target_page = page;
155153
break;
156154
}

0 commit comments

Comments
 (0)