mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-17 23:45:29 -05:00
fix: ui fails to render whether time is missing
this might happen from old sinopia storages
This commit is contained in:
parent
b45460d7a3
commit
f575b48f39
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,10 @@ export default class LastSync extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
if (!this.props.packageMeta.time) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Module
|
<Module
|
||||||
title="Last Sync"
|
title="Last Sync"
|
||||||
|
|
Loading…
Add table
Reference in a new issue