Skip to content
Snippets Groups Projects
Commit 5e1ccbc0 authored by Lukas's avatar Lukas Committed by mcfarhat
Browse files

Update permlink search url build function

parent 7c10e2a8
No related branches found
No related tags found
1 merge request!499#392_part2_simplify_URL_route_build
......@@ -4,7 +4,7 @@ export function startCommentPermlinkSearch(
commentPermlinkSearchProps: Explorer.CommentPermlinSearchParams,
setPermlinkSearchProps: (props: Explorer.PermlinkSearchProps) => void,
setCommentPaginationPage: (val: number) => void,
setCommentType: (val: "all" | "post" | "comment" | undefined) => void,
setCommentType: (val: "all" | "post" | "comment") => void,
setLastSearchKey: (val: "comment-permlink") => void
) {
const { ...params } = commentPermlinkSearchProps;
......@@ -14,6 +14,6 @@ export function startCommentPermlinkSearch(
};
setPermlinkSearchProps(props);
setCommentPaginationPage(1);
setCommentType(undefined);
setCommentType("post");
setLastSearchKey("comment-permlink");
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment