refactor(former): 🔄 restructure form components and stores
* Remove unused FormLayout and SuperForm stores. * Consolidate form logic into Former component. * Implement new Former layout and types. * Update stories for new Former component. * Clean up unused styles and types across the project.
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
/**
|
||||
* Retrieves a nested value from an object using dot notation path
|
||||
* @param path - Dot-separated path (e.g., "user.address.city")
|
||||
* @param obj - Object to extract value from
|
||||
* @returns The value at the specified path, or undefined if not found
|
||||
*/
|
||||
export const getNestedValue = (path: string, obj: any): any => {
|
||||
return path.split('.').reduce((prev, curr) => prev?.[curr], obj)
|
||||
}
|
||||
Reference in New Issue
Block a user