From a0825a9c74fc5b007306e621069b42c3fdcdd320 Mon Sep 17 00:00:00 2001 From: mguihal Date: Sat, 20 Apr 2024 23:36:47 +0200 Subject: [PATCH] fix: Validate multi-url input --- .../Agent/Actor/Organization/OrganizationEdit.jsx | 9 +++++++-- frontend/src/resources/Agent/Actor/Organization/index.js | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/src/resources/Agent/Actor/Organization/OrganizationEdit.jsx b/frontend/src/resources/Agent/Actor/Organization/OrganizationEdit.jsx index 73430d1..864dc4f 100644 --- a/frontend/src/resources/Agent/Actor/Organization/OrganizationEdit.jsx +++ b/frontend/src/resources/Agent/Actor/Organization/OrganizationEdit.jsx @@ -4,10 +4,11 @@ import { SelectInput, TabbedForm, ImageField, + SimpleFormIterator, + ArrayInput, } from 'react-admin'; import { ReferenceInput, ImageInput } from '@semapps/input-components'; import { MarkdownInput } from '@semapps/markdown-components'; -import { MultiLinesInput } from '@semapps/input-components'; import { OrganizationsInput, EventsInput, DocumentsInput, LocationInput } from '../../../../common/input'; import Edit from "../../../../layout/edit/Edit"; import CustomTreeSelectArrayInput from '../../../../common/input/TreeComponent/CustomTreeSelectArrayInput'; @@ -26,7 +27,11 @@ export const OrganizationEdit = props => ( - + + + + + diff --git a/frontend/src/resources/Agent/Actor/Organization/index.js b/frontend/src/resources/Agent/Actor/Organization/index.js index 09ea44c..2223ccb 100644 --- a/frontend/src/resources/Agent/Actor/Organization/index.js +++ b/frontend/src/resources/Agent/Actor/Organization/index.js @@ -21,7 +21,7 @@ const resource = { types: ['pair:Organization'], list: { servers: '@default', - forceArray: ['pair:organizationOfMembership'] + forceArray: ['pair:organizationOfMembership', 'pair:homePage'] }, fieldsMapping: { title: 'pair:label'