Skip to content

Commit

Permalink
Fix: Data in the DiffLink is not refreshed
Browse files Browse the repository at this point in the history
  • Loading branch information
AnYiEE committed Nov 23, 2023
1 parent d174fbd commit 0a51868
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion static/wikimirror.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions static/wikimirror.tsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1480,7 +1480,7 @@
diffId === mw.config.get('wgDiffNewId') &&
response['compare']?.fromrevid === mw.config.get('wgDiffOldId')
) {
buildLink(0);
buildLink(0, _diffId);
}
} catch (error) {
console.error('WikiMirror DiffLink ajax error:', error);
Expand All @@ -1489,7 +1489,7 @@
};
const {diffId, oldId, revisionId} = ids;
if (diffId) {
buildLink(oldId);
buildLink(oldId, diffId);
if (oldId) {
compareWithRemoteDiffId(diffId);
}
Expand Down

0 comments on commit 0a51868

Please sign in to comment.