Skip to content

Commit

Permalink
Use template literal for string conversion
Browse files Browse the repository at this point in the history
Using a template literal for converting an object to string is easier to read and imho safer to do.
  • Loading branch information
bjoernricks authored May 17, 2021
1 parent 8e5f1c1 commit e948448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gsa/src/web/pages/schedules/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ class ScheduleDialog extends React.Component {
// convert name to string explicitly to not run into:
// `TypeError: e.replace is not a function`
// when name is just numbers.
summary: name.toString(),
summary: `${name}`,
startDate,
},
timezone,
Expand Down

0 comments on commit e948448

Please sign in to comment.