Skip to content
Snippets Groups Projects
Commit e2ba46ca authored by Lukas's avatar Lukas
Browse files

Update permlink search url build function

parent 7077c0ed
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.
Finish editing this message first!
Please register or to comment