dify/web/features/deployments/route-state.ts
Stephen Zhou f665bcac95
chore(web): clean up unused production code (#37854)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-24 07:10:17 +00:00

13 lines
317 B
TypeScript

'use client'
import { atom } from 'jotai'
import {
nextParamsAtom,
} from '@/app/components/next-route-state/atoms'
export const deploymentRouteAppInstanceIdAtom = atom((get) => {
const appInstanceId = get(nextParamsAtom).appInstanceId
return typeof appInstanceId === 'string' ? appInstanceId : undefined
})