fix: reviews

This commit is contained in:
Yourz
2026-02-07 22:51:52 +08:00
parent 37477b2e43
commit bde6678cd7

View File

@@ -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