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:
parent
8d1869abcb
commit
1633f16847
1 changed files with 7 additions and 2 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue