mirror of
https://github.com/frappe/books.git
synced 2026-08-24 10:04:45 -05:00
remove unnecessary null check
This commit is contained in:
@@ -196,9 +196,8 @@ export function getErrorHandledSync<T extends (...args: any[]) => any>(
|
||||
function getFeatureFlags(): string[] {
|
||||
const getBooleanFields = (docName: string) => {
|
||||
const doc = fyo.singles[docName];
|
||||
if (!doc) return {};
|
||||
|
||||
return Object.entries(doc).reduce((acc, [key, value]) => {
|
||||
return Object.entries(doc as Doc).reduce((acc, [key, value]) => {
|
||||
const fieldsArray = fyo.schemaMap[docName]?.fields ?? [];
|
||||
const fieldsMap = new Map(fieldsArray.map((f) => [f.fieldname, f]));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user