Skip to content

Commit

Permalink
Fixed the looks of the template when no existing params
Browse files Browse the repository at this point in the history
  • Loading branch information
eijawerner committed Feb 11, 2022
1 parent 6f41083 commit c95b96b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ export const MissingParamsTemplateLink = ({
existingParamsStringWithBracketsAndSurroundingNewlines.length - 1
)
.trim()
existingParamsTemplate = ` ${existingParamsStringCleaned}`
existingParamsTemplate = `,\n\n ${existingParamsStringCleaned}`
}

return `:params \n{\n${missingParamsTemplate},\n\n${existingParamsTemplate}\n}`
return `:params \n{\n${missingParamsTemplate}${existingParamsTemplate}\n}`
}

return (
Expand Down

0 comments on commit c95b96b

Please sign in to comment.