Skip to content

Commit

Permalink
fix: fixes initial fields being undefined when calling node.input
Browse files Browse the repository at this point in the history
  • Loading branch information
fenilli committed Nov 10, 2023
1 parent 7682253 commit a3fbf33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/addons/formkit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default <F extends RequestPayload>(initialFields?: F) => {
if (node.props.type !== 'form') return;

state.node = node;
node.input(initialFields);
if (initialFields) node.input(initialFields);

node.on('created', () => {
watchEffect(() => {
Expand Down

0 comments on commit a3fbf33

Please sign in to comment.