Skip to content

Commit

Permalink
Merge branch 'release/1.0.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
YukiOnishi1129 committed Aug 24, 2024
2 parents b6c0f27 + 0681975 commit 756e994
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,13 @@ const ArticleKeyWordSearchDialogContent: FC<
const onSubmit = async (values: z.infer<typeof formSchema>) => {
let keywordPath = "";
if (!!values.keyword && values.keyword.trim() === "") {
keywordPath = `keyword=${values.keyword}`;
keywordPath = `&keyword=${values.keyword}`;
}

await serverRevalidatePage(`/article/search/result?${keywordPath}`);
router.replace(`/article/search/result?${keywordPath}`);
await serverRevalidatePage(
`/article/search/result?dummy=dummy${keywordPath}`
);
router.replace(`/article/search/result?dummy=dummy${keywordPath}`);
resetDialog();
handleClose();
};
Expand Down

0 comments on commit 756e994

Please sign in to comment.