Skip to content

Commit 85a741b

Browse files
committed
Only show date if present
1 parent 00bc541 commit 85a741b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/app.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,9 @@ class App extends Component {
15771577
<Button
15781578
label={
15791579
node.name +
1580-
(canEdit ? ' (' + node.date.format('D.M.YYYY') + ')' : '')
1580+
(canEdit && node.date
1581+
? ' (' + node.date.format('D.M.YYYY') + ')'
1582+
: '')
15811583
}
15821584
className='p-button-text p-button-secondary fails-tree'
15831585
tooltip={node.filename}
@@ -2177,7 +2179,7 @@ class App extends Component {
21772179
name: el.name,
21782180
filename: el.filename,
21792181
type: 'notebook',
2180-
date: moment(el.date),
2182+
date: el.date && moment(el.date),
21812183
children:
21822184
el.applets?.map?.((applet) => ({
21832185
id: applet.appid,

0 commit comments

Comments
 (0)