Commit c595622493e1e6fe53de788e32b14f98db8475cc
wipe draft on publish!
mix irving committed on 4/11/2018, 9:56:20 PMParent: dffadefe5b79998c729e872521f3194d900a2167
Files changed
app/page/blogNew.js | changed |
app/page/blogNew.js | ||
---|---|---|
@@ -190,9 +190,12 @@ | ||
190 | 190 | cb(null, content) |
191 | 191 | }) |
192 | 192 | } |
193 | 193 | }, |
194 | - (err, msg) => api.history.sync.push(err || { page: 'blogIndex' }) | |
194 | + (err, msg) => { | |
195 | + api.drafts.sync.remove(DRAFT_LOCATION) | |
196 | + api.history.sync.push(err || { page: 'blogIndex' }) | |
197 | + } | |
195 | 198 | ) |
196 | 199 | } |
197 | 200 | |
198 | 201 | function initialiseChannelSuggests ({ input, suggester, meta }) { |
Built with git-ssb-web