Skip to content

Commit

Permalink
Merge branch 'master' into fix/140-update-handle-change-type
Browse files Browse the repository at this point in the history
  • Loading branch information
larrybotha authored Nov 7, 2021
2 parents 2094c39 + 6e76387 commit a987d4b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
'*!(.eslintrc).{svelte,js,ts}': ['eslint', 'prettier --write'],
'*.{svelte,js}': ['eslint', 'prettier --write'],
};
4 changes: 3 additions & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,6 @@ declare class ErrorMessage extends SvelteComponentTyped<
{default: any}
> {}

export {createForm, Form, Field, Select, ErrorMessage, Textarea};
declare const key: {};

export {createForm, key, Form, Field, Select, ErrorMessage, Textarea};
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function assignDeep(object, value) {
const copy = {};
for (const key in object) {
copy[key] =
typeof object[key] === 'object' ? assignDeep(object[key], value) : value;
typeof object[key] === 'object' && !isNullish(object[key]) ? assignDeep(object[key], value) : value;
}
return copy;
}
Expand Down

0 comments on commit a987d4b

Please sign in to comment.