mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 01:54:40 +08:00
Fix “Cannot destructure property expiration
of 'undefined’” on reminders UI
This commit is contained in:
parent
66b6e14bb9
commit
2a92394aca
1 changed files with 3 additions and 3 deletions
|
@ -34,12 +34,12 @@ class SendRemindersThreadTimestamp extends Component<SendRemindersThreadTimestam
|
|||
return <Fallback {...this.props} />;
|
||||
}
|
||||
|
||||
const { expiration } = this.props.thread.metadataForPluginId(PLUGIN_ID);
|
||||
if (!expiration) {
|
||||
const metadata = this.props.thread.metadataForPluginId(PLUGIN_ID);
|
||||
if (!metadata || !metadata.expiration) {
|
||||
return <Fallback {...this.props} />;
|
||||
}
|
||||
|
||||
const mExpiration = moment(expiration);
|
||||
const mExpiration = moment(metadata.expiration);
|
||||
|
||||
return (
|
||||
<span
|
||||
|
|
Loading…
Reference in a new issue