fix(banking): miscellaneous bug fixes (#55492)

* fix(banking): correct usage of hooks in rule action

* fix(banking): apply ESLint rules for hooks

* fix(banking): add lazy imports and code-splitting
This commit is contained in:
Nikhil Kothari
2026-06-01 16:06:48 +05:30
committed by GitHub
parent fbe6754b55
commit 65b87ec045
38 changed files with 3685 additions and 3418 deletions

View File

@@ -20,7 +20,7 @@ export const Preferences = () => {
const { updateDoc, error } = useFrappeUpdateDoc<AccountsSettings>()
const onUpdate = (field: keyof AccountsSettings, value: any) => {
const onUpdate = <K extends keyof AccountsSettings>(field: K, value: AccountsSettings[K]) => {
mutate(updateDoc("Accounts Settings", "Accounts Settings", {
[field]: value
}), {