Skip to content

Commit 8aa9ecc

Browse files
committed
[playground] Fix error schema example
1 parent 541124d commit 8aa9ecc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/playground/src/samples/errorSchema.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { SvelteMap } from "svelte/reactivity";
22

33
import type { Sample } from "./Sample";
4+
import { DEFAULT_ID_PREFIX, DEFAULT_ID_SEPARATOR, pathToId } from '@sjsf/form';
45

56
const errorSchema: Sample = {
67
status: "perfect",
@@ -85,7 +86,7 @@ const errorSchema: Sample = {
8586
},
8687
errors: new SvelteMap([
8788
[
88-
"root_firstName",
89+
pathToId(DEFAULT_ID_PREFIX, DEFAULT_ID_SEPARATOR, ["firstName"]),
8990
[
9091
{
9192
instanceId: "root_firstName",

0 commit comments

Comments
 (0)