Skip to content

Commit 990316e

Browse files
committed
Update numeric NA check in Popular Movies demo
1 parent 26dcd53 commit 990316e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vignettes/popular-movies/popular-movies.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function renderMovie(cellInfo) {
124124
const genres = ' ' + cellInfo.row['genres'].join(', ')
125125
126126
let runtime = cellInfo.row['runtime']
127-
if (typeof runtime === 'number') {
127+
if (runtime != null) {
128128
const hours = Math.floor(runtime / 60)
129129
const mins = runtime % 60
130130
runtime = [hours > 0 ? hours + 'h' : '', mins > 0 ? mins + 'm' : ''].join(' ')

0 commit comments

Comments
 (0)