Pass undefined analyticalTTL if Synapse is disabled (#778)

This commit is contained in:
Steve Faulkner 2021-05-12 11:49:25 -05:00 committed by GitHub
parent c5f76ac2a9
commit 66281447df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -921,6 +921,10 @@ export class AddCollectionPanel extends React.Component<AddCollectionPanelProps,
}
private getAnalyticalStorageTtl(): number {
if (!this.isSynapseLinkEnabled()) {
return undefined;
}
if (!this.shouldShowAnalyticalStoreOptions()) {
return undefined;
}