1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 14:07:01 +09:00

JS-4063: fix

This commit is contained in:
Andrew Simachev 2024-02-29 17:11:44 +01:00
parent 8d1869abcb
commit 1633f16847
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8

View file

@ -35,7 +35,7 @@ const Create = observer(class Create extends React.Component<I.PageComponent, St
state = {
error: '',
isLoading: false,
withContent: true,
withContent: false,
};
constructor (props: I.PageComponent) {
@ -171,6 +171,8 @@ const Create = observer(class Create extends React.Component<I.PageComponent, St
this.initSpace();
this.initName();
this.initType();
this.setState({ withContent: Boolean(Number(Storage.get('withContent'))) });
});
};
@ -440,7 +442,10 @@ const Create = observer(class Create extends React.Component<I.PageComponent, St
};
onCheckbox () {
this.setState({ withContent: !this.state.withContent });
const { withContent } = this.state;
Storage.set('withContent', Number(!withContent));
this.setState({ withContent: !withContent });
};
scrollToBottom () {