diff --git a/ui/src/shared/components/cells/CellContext.tsx b/ui/src/shared/components/cells/CellContext.tsx index ca8d1091e6..dab4cecf3c 100644 --- a/ui/src/shared/components/cells/CellContext.tsx +++ b/ui/src/shared/components/cells/CellContext.tsx @@ -65,9 +65,9 @@ const CellContext: FC = ({ 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`) } }