Skip to content

Commit

Permalink
Only show date if present
Browse files Browse the repository at this point in the history
  • Loading branch information
martenrichter committed Jan 25, 2025
1 parent 00bc541 commit 85a741b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,9 @@ class App extends Component {
<Button
label={
node.name +
(canEdit ? ' (' + node.date.format('D.M.YYYY') + ')' : '')
(canEdit && node.date
? ' (' + node.date.format('D.M.YYYY') + ')'
: '')
}
className='p-button-text p-button-secondary fails-tree'
tooltip={node.filename}
Expand Down Expand Up @@ -2177,7 +2179,7 @@ class App extends Component {
name: el.name,
filename: el.filename,
type: 'notebook',
date: moment(el.date),
date: el.date && moment(el.date),
children:
el.applets?.map?.((applet) => ({
id: applet.appid,
Expand Down

0 comments on commit 85a741b

Please sign in to comment.