From 5e08c4537baaa0403558109986b56bcecf737eb3 Mon Sep 17 00:00:00 2001 From: tusooa Date: Fri, 10 Mar 2023 21:39:15 -0500 Subject: [PATCH] Clean up debug statements --- src/components/draft/draft.js | 1 - src/components/drafts/drafts.js | 1 - src/components/post_status_form/post_status_form.js | 5 ----- 3 files changed, 7 deletions(-) diff --git a/src/components/draft/draft.js b/src/components/draft/draft.js index ffc3671a..cb07ec5c 100644 --- a/src/components/draft/draft.js +++ b/src/components/draft/draft.js @@ -50,7 +50,6 @@ const Draft = { this.showingConfirmDialog = true }, doAbandon () { - console.debug('abandoning') this.$store.dispatch('abandonDraft', { id: this.draft.id }) .then(() => { this.hideConfirmDialog() diff --git a/src/components/drafts/drafts.js b/src/components/drafts/drafts.js index 6703a48e..201417f6 100644 --- a/src/components/drafts/drafts.js +++ b/src/components/drafts/drafts.js @@ -8,7 +8,6 @@ const Drafts = { }, computed: { drafts () { - console.debug('available drafts:', this.$store.getters.draftsArray) return this.$store.getters.draftsArray } } diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index b284ff8c..c809e2f8 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -673,7 +673,6 @@ const PostStatusForm = { }, saveDraft () { if (!this.saveInhibited) { - console.debug('Saving status', this.newStatus) this.$store.dispatch('addOrSaveDraft', { draft: this.newStatus }) .then(id => { if (this.newStatus.id !== id) { @@ -686,16 +685,12 @@ const PostStatusForm = { this.$store.dispatch('abandonDraft', { id: this.newStatus.id }) }, getDraft (statusType, refId) { - console.debug('type and ref:', [statusType, refId]) - const maybeDraft = this.$store.state.drafts.drafts[this.draftId] if (this.draftId && maybeDraft) { - console.debug('current draft:', maybeDraft) return maybeDraft } else { const existingDrafts = this.$store.getters.draftsByTypeAndRefId(statusType, refId) - console.debug('existing drafts:', existingDrafts) if (existingDrafts.length) { return existingDrafts[0] }