🔇 Removed console.log's
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
import { redirect } from '@sveltejs/kit';
|
||||
|
||||
export const load = async ({ parent }) => {
|
||||
const { email } = await parent();
|
||||
if (email) {
|
||||
throw redirect(302, '/dashboard');
|
||||
}
|
||||
return {
|
||||
email
|
||||
};
|
||||
};
|
||||
@@ -45,19 +45,15 @@
|
||||
for (let i = 0; i < quizzes.length; i++) {
|
||||
id_to_position_map[quizzes[i].id] = i;
|
||||
}
|
||||
console.log(id_to_position_map);
|
||||
return quizzes_to_show;
|
||||
};
|
||||
|
||||
let suggestions = [];
|
||||
|
||||
const search = () => {
|
||||
console.log(search_term);
|
||||
if (search_term === '') {
|
||||
console.log('HELLO');
|
||||
quizzes_to_show = [];
|
||||
quizzes_to_show = quizzes;
|
||||
console.log(quizzes_to_show);
|
||||
quizzes_to_show = quizzes_to_show;
|
||||
} else {
|
||||
const res = minisearch.search(search_term);
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
resp_data_temp = resp_data_temp.replaceAll('<em>', '<mark>');
|
||||
resp_data_temp = resp_data_temp.replaceAll('</em>', '</mark>');
|
||||
resp_data = JSON.parse(resp_data_temp);
|
||||
console.log('Success!', resp_data);
|
||||
} else {
|
||||
console.error('Error!', res.status);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user