diff --git a/packages/designer/src/components/composition/use-form-schema.ts b/packages/designer/src/components/composition/use-form-schema.ts index 84dc6ced8a3dcda3799f05ef83d15f0ce4d5b601..47c631d8f47913fb8c2712e9a0145d974b057b31 100644 --- a/packages/designer/src/components/composition/use-form-schema.ts +++ b/packages/designer/src/components/composition/use-form-schema.ts @@ -1260,7 +1260,7 @@ export function useFormSchema(): UseFormSchema { Object.keys(controlEventPropertyIDList).forEach(propertyId => { const propertyValue = componentSchema[propertyId]; if (propertyValue && propertyValue.includes('communication:')) { - const communicationIds = propertyValue.replace('communication:', '').split(';'); + const communicationIds = propertyValue.replace(/communication:/g, '').split(';'); formSchema.module.communications = formSchema.module.communications?.filter(communication => !communicationIds.includes(communication.id)); } }); diff --git a/packages/ui-vue/components/external-container/src/property-config/external-container.property-config.ts b/packages/ui-vue/components/external-container/src/property-config/external-container.property-config.ts index 6698f2014aa5fa187e6bfec51d9e4f22406cb0bb..2f79d9031798529e426f8e57cb7f71a8f82dc32e 100644 --- a/packages/ui-vue/components/external-container/src/property-config/external-container.property-config.ts +++ b/packages/ui-vue/components/external-container/src/property-config/external-container.property-config.ts @@ -130,7 +130,7 @@ export class ExternalContainerProperty extends BaseControlProperty { if (!propertyData.onCommunication) { return; } - const communicationIds = propertyData.onCommunication.replace('communication:', '').split(';'); + const communicationIds = propertyData.onCommunication.replace(/communication:/g, '').split(';'); if (!communicationIds?.length) { return; }