Skip to content

Commit

Permalink
fix(app): remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Oct 25, 2023
1 parent 9ab22cb commit 8f2e61a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions packages/app/src/components/Search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,9 @@ export default function Search() {
try {
const input = window.sessionStorage.getItem(SEARCH_INPUT_KEY);
window.sessionStorage.removeItem(SEARCH_INPUT_KEY);
console.log('Input', input);
if (input) {
setInput(input);
} else {
console.log(location.pathname.startsWith('/resources/'));
if (location.pathname.startsWith('/resources/')) {
const content = stringifySearch(new URLSearchParams(location.search));
setInput(content);
Expand Down
1 change: 0 additions & 1 deletion packages/app/src/components/Search/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ export function parseSearch(search: string) {

export function stringifySearch(search: URLSearchParams) {
const filter = parseSearchURL(search, { pageSize: 80 });
console.log(filter);
const content: string[] = [];

if (filter.search) {
Expand Down

0 comments on commit 8f2e61a

Please sign in to comment.