mirror of
https://github.com/outline/outline.git
synced 2026-11-22 22:02:35 +03:00
fix: Attempt to loadRevision with empty revisionId
This commit is contained in:
1 parent
902e7a4772
commit
760e2b2ce9
1 file changed
+2
-3
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user