Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c8fa635

Browse files
authoredDec 20, 2023
fix: const to let in "the <form> element" (#546)
* changed id from const to let * more const to let changes
1 parent 3c3af89 commit c8fa635

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed
 

‎content/tutorial/03-sveltekit/06-forms/01-the-form-element/app-a/src/routes/+page.server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as db from '$lib/server/database.js';
22

33
export function load({ cookies }) {
4-
const id = cookies.get('userid');
4+
let id = cookies.get('userid');
55

66
if (!id) {
77
id = crypto.randomUUID();

‎content/tutorial/03-sveltekit/06-forms/01-the-form-element/app-b/src/routes/+page.server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as db from '$lib/server/database.js';
22

33
export function load({ cookies }) {
4-
const id = cookies.get('userid');
4+
let id = cookies.get('userid');
55

66
if (!id) {
77
id = crypto.randomUUID();

‎content/tutorial/03-sveltekit/06-forms/02-named-form-actions/app-b/src/routes/+page.server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as db from '$lib/server/database.js';
22

33
export function load({ cookies }) {
4-
const id = cookies.get('userid');
4+
let id = cookies.get('userid');
55

66
if (!id) {
77
id = crypto.randomUUID();

‎content/tutorial/03-sveltekit/06-forms/03-form-validation/app-b/src/routes/+page.server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { fail } from '@sveltejs/kit';
22
import * as db from '$lib/server/database.js';
33

44
export function load({ cookies }) {
5-
const id = cookies.get('userid');
5+
let id = cookies.get('userid');
66

77
if (!id) {
88
id = crypto.randomUUID();

‎content/tutorial/03-sveltekit/06-forms/05-customizing-use-enhance/app-b/src/routes/+page.server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { fail } from '@sveltejs/kit';
22
import * as db from '$lib/server/database.js';
33

44
export function load({ cookies }) {
5-
const id = cookies.get('userid');
5+
let id = cookies.get('userid');
66

77
if (!id) {
88
id = crypto.randomUUID();

1 commit comments

Comments
 (1)

vercel[bot] commented on Dec 20, 2023

@vercel[bot]
Please sign in to comment.