Commit 5695e75e authored by davelopez's avatar davelopez
Browse files

Reload histories when the user 'really' changes

The user prop watcher may trigger more times than the actual user changes.
parent d49c72b7
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -47,8 +47,10 @@ export default {
        // when user changes reload histories
        user: {
            immediate: true,
            handler() {
            handler(newVal, oldVal) {
                if (oldVal?.id != newVal?.id) {
                    this.loadHistories();
                }
            },
        },