Skip to content

Commit e396844

Browse files
committed
Fix crash when no pubdate
1 parent 4388caa commit e396844

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/components/panels/edit/modals/ComplexLookupModal.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,9 @@
289289
},
290290
291291
hasPubDate: function(data){
292-
console.info("data: ", data)
293292
let dates = data.extra.pubdates
294293
295-
if (dates.length > 0){
294+
if (dates && dates.length > 0){
296295
return dates[0]
297296
}
298297

0 commit comments

Comments
 (0)