Skip to content

Commit cc7058e

Browse files
committed
More sharing bug fixes
1 parent b499e9e commit cc7058e

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/documents.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,12 @@ export default {
6767
const db = firebase.database();
6868
db.ref(`users/${this.uid}/docs`).on("value", snapshot => {
6969
this.loading = false;
70-
this.docs = [];
70+
7171
if (!snapshot.val()) {
7272
this.noDocs = true;
7373
} else {
7474
this.noDocs = false;
75+
this.docs = [];
7576
snapshot.forEach(doc => {
7677
let docKey = doc.key;
7778
let utc = doc.val().utc;

src/components/editor.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ export default {
374374
docUser: this.docUser
375375
});
376376
this.personToShareWith = null;
377+
this.shareError = null;
377378
} else {
378379
this.shareError = "Not a user of Graphite Wirter";
379380
}

0 commit comments

Comments
 (0)