cancel editing loses is_public

This commit is contained in:
muerwre 2019-02-14 10:18:04 +07:00
parent 8391408bb3
commit 679c485b89
4 changed files with 8 additions and 7 deletions

View file

@ -290,6 +290,7 @@ export class Editor {
setInitialData = () => {
const { path } = getUrlData();
const { id } = this.getUser();
const { is_public } = this.getState();
const { route, stickers, provider } = this.dumpData();
this.initialData = {
@ -301,6 +302,7 @@ export class Editor {
route,
stickers,
provider,
is_public,
};
};