We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d761e1 commit c0c41f8Copy full SHA for c0c41f8
src/routes/tutorial/[slug]/+page.svelte
@@ -50,7 +50,22 @@
50
let completing = false;
51
let path = '/';
52
53
- $: b = { ...data.section.a, ...data.section.b };
+ /** @type {Record<string, import('$lib/types').Stub>} */
54
+ let b;
55
+ $: {
56
+ b = { ...data.section.a };
57
+ for (const key in data.section.b) {
58
+ if (key.endsWith('__delete')) {
59
+ for (const k in b) {
60
+ if (k.startsWith(key.slice(0, -'/__delete'.length))) {
61
+ delete b[k];
62
+ }
63
64
+ } else {
65
+ b[key] = data.section.b[key];
66
67
68
69
70
/** @type {import('$lib/types').FileTreeContext} */
71
const { select } = setContext('filetree', {
0 commit comments