A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.
feat(app): enricher template feature flag
dextmorgnad6a31a7abed
diff --git a/flowsint-app/src/routes/_auth.dashboard.enrichers.new.tsx b/flowsint-app/src/routes/_auth.dashboard.enrichers.new.tsxindex bee722d4..81a7af3b 100644--- a/flowsint-app/src/routes/_auth.dashboard.enrichers.new.tsx+++ b/flowsint-app/src/routes/_auth.dashboard.enrichers.new.tsx@@ -1,13 +1,22 @@-import { createFileRoute, useRouterState } from '@tanstack/react-router'+import { createFileRoute, useRouterState, redirect } from '@tanstack/react-router'import { TemplateEditor } from '@/components/templates/template-editor'+const FEATURE_FLAG = trueexport const Route = createFileRoute('/_auth/dashboard/enrichers/new')({+ beforeLoad: async () => {+ if (FEATURE_FLAG) {+ throw redirect({+ to: '/'+ })+ }+ },component: NewTemplatePage})function NewTemplatePage() {const routerState = useRouterState()- const importedContent = (routerState.location.state as { importedContent?: string })?.importedContent+ const importedContent = (routerState.location.state as { importedContent?: string })+ ?.importedContentreturn <TemplateEditor importedYaml={importedContent} />}