mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-06 15:11:36 +03:00
fixed wrong name for ship
This commit is contained in:
parent
9b260e081d
commit
63bea15f58
@ -22,7 +22,7 @@ export class NewPost extends Component {
|
|||||||
postSubmit() {
|
postSubmit() {
|
||||||
let newNote = {
|
let newNote = {
|
||||||
"new-note": {
|
"new-note": {
|
||||||
who: this.props.host.slice(1),
|
who: this.props.ship.slice(1),
|
||||||
book: this.props.book,
|
book: this.props.book,
|
||||||
note: stringToSymbol(this.state.title),
|
note: stringToSymbol(this.state.title),
|
||||||
title: this.state.title,
|
title: this.state.title,
|
||||||
@ -45,7 +45,7 @@ export class NewPost extends Component {
|
|||||||
let notebook = this.props.notebooks[this.props.ship][this.props.book];
|
let notebook = this.props.notebooks[this.props.ship][this.props.book];
|
||||||
if (notebook.notes[this.state.awaiting]) {
|
if (notebook.notes[this.state.awaiting]) {
|
||||||
let redirect =
|
let redirect =
|
||||||
`/~publish/note/${this.props.host}/${this.props.book}/${this.state.awaiting}`;
|
`/~publish/note/${this.props.ship}/${this.props.book}/${this.state.awaiting}`;
|
||||||
this.props.history.push(redirect);
|
this.props.history.push(redirect);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ export class Root extends Component {
|
|||||||
notebooks={state.notebooks}>
|
notebooks={state.notebooks}>
|
||||||
<NewPost
|
<NewPost
|
||||||
notebooks={state.notebooks}
|
notebooks={state.notebooks}
|
||||||
host={ship}
|
ship={ship}
|
||||||
book={notebook}
|
book={notebook}
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user