Skip to content

Commit f3ebfec

Browse files
authored
fix: normalize path strings when updating field values (#14649)
* fix: normalize path strings when updating field values * fix
1 parent 0bd9942 commit f3ebfec

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/smart-pianos-lie.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/kit': patch
3+
---
4+
5+
fix: normalize path strings when updating field values

packages/kit/src/runtime/client/remote-functions/form.svelte.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,8 @@ export function form(id) {
416416
);
417417
}
418418

419+
name = name.replace(/^[nb]:/, '');
420+
419421
versions[name] ??= 0;
420422
versions[name] += 1;
421423

0 commit comments

Comments
 (0)