"...git@developer.sourcefind.cn:chenpangpang/ComfyUI.git" did not exist on "ec7a00aa9644049c306dd0a2c02cb4f91f127286"
Unverified Commit 6c55e9fc authored by Sylvain Gugger's avatar Sylvain Gugger Committed by GitHub
Browse files

Fix dropdown bug in searches (#5440)

* Trigger CI

* Fix dropdown bug in searches
parent 734a28a7
...@@ -87,7 +87,7 @@ function addVersionControl() { ...@@ -87,7 +87,7 @@ function addVersionControl() {
const parts = location.toString().split('/'); const parts = location.toString().split('/');
let versionIndex = parts.length - 2; let versionIndex = parts.length - 2;
// Index page may not have a last part with filename.html so we need to go up // Index page may not have a last part with filename.html so we need to go up
if (parts[parts.length - 1] != "" && ! parts[parts.length - 1].match(/\.html$/)) { if (parts[parts.length - 1] != "" && ! parts[parts.length - 1].match(/\.html$|^search.html?/)) {
versionIndex = parts.length - 1; versionIndex = parts.length - 1;
} }
// Main classes and models are nested so we need to go deeper // Main classes and models are nested so we need to go deeper
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment