Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vue-unistra
formbuilder
Commits
064cd702
Commit
064cd702
authored
Jan 26, 2022
by
MARCO Jonathan
Browse files
🐛
Fix the condition bug with the end parenthesis
parent
63735d4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/services/ConditionService/index.ts
View file @
064cd702
...
...
@@ -96,7 +96,10 @@ const conditionsCheckOneByOne = (
parentArray
.
push
(
subConditionArray
[
0
]);
i
=
subConditionIFinal
;
}
else
{
if
((
conditions
[
i
].
type
===
'
item
'
&&
conditions
[
i
].
value
===
'
(
'
&&
i
===
conditions
.
length
-
1
)
||
i
!==
conditions
.
length
-
1
)
{
if
(
(
conditions
[
i
].
type
===
'
item
'
&&
conditions
[
i
].
value
===
'
(
'
&&
i
===
conditions
.
length
-
1
)
||
(
i
!==
conditions
.
length
-
1
&&
conditions
[
i
+
1
].
value
!==
'
)
'
)
)
{
throw
new
Error
(
'
Invalid condition
'
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment