fix: 🐛
This commit is contained in:
@@ -116,7 +116,6 @@ export function PageManager({ maxStackSize = 5 }: { maxStackSize?: number }) {
|
|||||||
|
|
||||||
const onPopState = (e: PopStateEvent) => {
|
const onPopState = (e: PopStateEvent) => {
|
||||||
let state = e.state as { index: number; url: string } | null
|
let state = e.state as { index: number; url: string } | null
|
||||||
console.log('popstate', state)
|
|
||||||
setSecondaryStack((pre) => {
|
setSecondaryStack((pre) => {
|
||||||
const currentItem = pre[pre.length - 1] as TStackItem | undefined
|
const currentItem = pre[pre.length - 1] as TStackItem | undefined
|
||||||
const currentIndex = currentItem?.index
|
const currentIndex = currentItem?.index
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export function EmbeddedHashtag({ hashtag }: { hashtag: string }) {
|
|||||||
return (
|
return (
|
||||||
<SecondaryPageLink
|
<SecondaryPageLink
|
||||||
className="text-primary hover:underline"
|
className="text-primary hover:underline"
|
||||||
to={toNoteList({ hashtag })}
|
to={toNoteList({ hashtag: hashtag.replace('#', '') })}
|
||||||
onClick={(e) => e.stopPropagation()}
|
onClick={(e) => e.stopPropagation()}
|
||||||
>
|
>
|
||||||
{hashtag}
|
{hashtag}
|
||||||
|
|||||||
Reference in New Issue
Block a user