Skip to content

Commit 54a5949

Browse files
committed
fix: remove duplications in steps due to empty parameters
1 parent a819407 commit 54a5949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/gherkin/GherkinStep.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const DefaultRenderer: DefaultComponent<GherkinStepProps> = ({
7777
stepTextElements.push(<HighLight key={`plain-${index}`} text={plain} />)
7878
}
7979
const arg = argument.group.value
80-
if (arg) {
80+
if (arg !== undefined && arg !== null) {
8181
if (arg.length > 0) {
8282
stepTextElements.push(
8383
<Parameter

0 commit comments

Comments
 (0)