mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
fix: reviews
This commit is contained in:
@@ -5,9 +5,7 @@ import NodeLibrarySidebarTabV2 from '@/components/sidebar/tabs/NodeLibrarySideba
|
||||
import type { SidebarTabExtension } from '@/types/extensionTypes'
|
||||
|
||||
export function useNodeLibrarySidebarTab(): SidebarTabExtension {
|
||||
const urlParams = new URLSearchParams(
|
||||
typeof globalThis === 'undefined' ? '' : globalThis.location.search
|
||||
)
|
||||
const urlParams = new URLSearchParams(globalThis.location?.search ?? '')
|
||||
const component =
|
||||
urlParams.get('nodeRedesign') === 'true'
|
||||
? NodeLibrarySidebarTabV2
|
||||
|
||||
Reference in New Issue
Block a user