We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26dcd53 commit 990316eCopy full SHA for 990316e
1 file changed
vignettes/popular-movies/popular-movies.Rmd
@@ -124,7 +124,7 @@ function renderMovie(cellInfo) {
124
const genres = ' ' + cellInfo.row['genres'].join(', ')
125
126
let runtime = cellInfo.row['runtime']
127
- if (typeof runtime === 'number') {
+ if (runtime != null) {
128
const hours = Math.floor(runtime / 60)
129
const mins = runtime % 60
130
runtime = [hours > 0 ? hours + 'h' : '', mins > 0 ? mins + 'm' : ''].join(' ')
0 commit comments