Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sidebranch: DR Secondary Dashboard - pr4 #8706

Merged
Merged
4 changes: 2 additions & 2 deletions ui/lib/core/addon/components/replication-secondary-card.js
Expand Up @@ -12,9 +12,9 @@ export default Component.extend({
layout,
delta: computed('data', function() {
// last_wal
Monkeychip marked this conversation as resolved.
Show resolved Hide resolved
let lastWAL = this.data.dr.lastWAL || 0;
let lastWAL = this.data.dr.lastWAL ? this.data.dr.lastWAL : 0;
Monkeychip marked this conversation as resolved.
Show resolved Hide resolved
// last_remote_wal
let lastRemoteWAL = this.data.dr.lastRemoteWAL || 0;
let lastRemoteWAL = this.data.dr.lastRemoteWAL ? this.data.dr.lastRemoteWAL : 0;
return Math.abs(lastWAL - lastRemoteWAL);
}),
});