Skip to content

Commit 90e3368

Browse files
committed
improvement(org): load the new-link form when a shortcut opens it
1 parent c56764c commit 90e3368

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎apps/sim/app/o/[organizationId]/links/organization-sim-link-provider.tsx‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
'use client'
22

33
import type { ReactNode } from 'react'
4+
import dynamic from 'next/dynamic'
45
import { RedesignSurface } from '@/app/o/[organizationId]/_redesign/redesign-host'
56
import { SimLinkOrganizationProvider } from '@/app/o/[organizationId]/links/sim-link-organization-provider'
6-
import { LinkEditor } from '@/platform/app/(shell)/links/_components/links-page/link-editor'
7+
8+
/** Every organization route mounts this provider; only a new-link shortcut needs the form. */
9+
const LinkEditor = dynamic(() =>
10+
import('@/platform/app/(shell)/links/_components/links-page/link-editor').then(
11+
(module) => module.LinkEditor
12+
)
13+
)
714

815
interface OrganizationSimLinkProviderProps {
916
organizationId: string | null

0 commit comments

Comments
 (0)