Commit c47210cd authored by MARCO Jonathan's avatar MARCO Jonathan
Browse files

馃悰 Fix the old condition converter if the value is unique

parent 557d1fc2
Pipeline #63862 passed with stage
in 14 seconds
......@@ -68,7 +68,7 @@ const formField = new schema.Entity('fields', {}, {
}
const oldConditionTranslated = ({ id, value }: OldCondition): ConditionTranslated[] => {
if (Array.isArray(value)) {
if (Array.isArray(value) && value.length > 1) {
const conditionsTranslated: ConditionTranslated[] = [];
value.reduce<ConditionTranslated[]>(((conditions, condition, i) => {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment