fix: allow edit of cells (#16624)

pull/16626/head
Alex Boatwright 2020-01-22 09:12:10 -08:00 committed by GitHub
parent 47b43bf980
commit 1e41be33ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -65,9 +65,9 @@ const CellContext: FC<Props> = ({
const handleEditNote = () => {
if (view.id) {
router.push(`${this.props.location.pathname}/notes/${view.id}/edit`)
router.push(`${location.pathname}/notes/${view.id}/edit`)
} else {
router.push(`${this.props.location.pathname}/notes/new`)
router.push(`${location.pathname}/notes/new`)
}
}