0
Fork 0
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:
Juan Picado @jotadeveloper 2018-05-31 01:13:10 +02:00
parent b45460d7a3
commit f575b48f39
No known key found for this signature in database
GPG key ID: 18AC54485952D158

View file

@ -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"