Skip to content

Commit

Permalink
debug(forms): Add console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
RoboG-11 committed Oct 9, 2024
1 parent 2572f43 commit 16b8cc0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/routes/(dashboard)/forms/[slug]/answers/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ import { loadSessionsFromDB, sessions } from '$lib/forms/service/stores/sessions

export const load: PageServerLoad = async ({ platform, params, parent }) => {
const formId = +params.slug;
// questions and forms
const parentData = await parent();
// console.log(parentData)
const lastQuestion = parentData.questions.at(-1).id

const query = `
Expand Down Expand Up @@ -45,5 +43,9 @@ export const load: PageServerLoad = async ({ platform, params, parent }) => {

sessions.set(sessionsWithExternal);

console.log(parentData)
console.log(sessionsWithExternal)
console.log(lastQuestion)

return { sessions: sessionsWithExternal };
};
2 changes: 1 addition & 1 deletion src/routes/(dashboard)/forms/[slug]/answers/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
export let data;
receiveSessions(data);
let completed = FilterCompleted.All;
console.log(data);
function filterCompleted(session: Session & { completed: number }, completed: FilterCompleted) {
return (
Expand Down Expand Up @@ -56,4 +57,3 @@
margin-bottom: 10px;
}
</style>

0 comments on commit 16b8cc0

Please sign in to comment.