Skip to content

Commit

Permalink
fix(xo-web/render-xo-item/Schedule): handle undefined job/schedule name
Browse files Browse the repository at this point in the history
  • Loading branch information
pdonias committed Sep 30, 2024
1 parent f6e6e05 commit d93902b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@
<!--packages-start-->

- xo-web patch

<!--packages-end-->
4 changes: 2 additions & 2 deletions packages/xo-web/src/common/render-xo-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,8 @@ export const Schedule = decorate([
}

const isEnabled = schedule.enabled
const scheduleName = schedule.name.trim()
const jobName = job?.name.trim()
const scheduleName = (schedule.name ?? '').trim()
const jobName = (job?.name ?? '').trim()

return (
<span>
Expand Down

0 comments on commit d93902b

Please sign in to comment.