fix: Attempt to loadRevision with empty revisionId

This commit is contained in:
Tom Moor
2020-02-17 10:23:02 -08:00
parent 902e7a4772
commit 760e2b2ce9

View File

@@ -53,9 +53,8 @@ class DataLoader extends React.Component<Props> {
}
// Also need to load the revision if it changes
if (
prevProps.match.params.revisionId !== this.props.match.params.revisionId
) {
const { revisionId } = this.props.match.params;
if (prevProps.match.params.revisionId !== revisionId && revisionId) {
this.loadRevision();
}
}