fix: use replace in new page redirect

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2023-05-14 08:28:36 +02:00
parent 1df6eb7bf5
commit 8e65f74a07

View file

@ -37,7 +37,7 @@ export const NewNotePage: NextPage = () => {
/> />
}> }>
<ShowIf condition={!!value}> <ShowIf condition={!!value}>
<Redirect to={`/n/${(value as Note).metadata.primaryAddress}`} /> <Redirect to={`/n/${(value as Note).metadata.primaryAddress}`} replace={true} />
</ShowIf> </ShowIf>
</CustomAsyncLoadingBoundary> </CustomAsyncLoadingBoundary>
) )