Skip to content

A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.

feat(app): remove spaces from custom types

dextmorgn635f342abaff
diff --git a/flowsint-app/src/routes/_auth.dashboard.custom-types.$typeId.tsx b/flowsint-app/src/routes/_auth.dashboard.custom-types.$typeId.tsx
index ddbf0f20..2545a887 100644
--- a/flowsint-app/src/routes/_auth.dashboard.custom-types.$typeId.tsx
+++ b/flowsint-app/src/routes/_auth.dashboard.custom-types.$typeId.tsx
@@ -65,6 +65,10 @@ function CustomTypeEditor() {
}
}, [existingType, isNew])
+ useEffect(() => {
+ setName(name.replaceAll(' ', ''))
+ }, [name])
+
const parseSchemaToFields = (schema: any) => {
const properties = schema.properties || {}
const required = schema.required || []