mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-01 03:32:04 +08:00

* fix: autosave layout to layout change * fix: autosave layout to layout change * refactor: no update api call on opening dashboard * refactor: removed extra put api call * refactor: if condition changed --------- Co-authored-by: Rajat-Dabade <rajat@signoz.io>
9 lines
255 B
TypeScript
9 lines
255 B
TypeScript
import { Layout } from 'react-grid-layout';
|
|
|
|
export const removeUndefinedValuesFromLayout = (layout: Layout[]): Layout[] =>
|
|
layout.map((obj) =>
|
|
Object.fromEntries(
|
|
Object.entries(obj).filter(([, value]) => value !== undefined),
|
|
),
|
|
) as Layout[];
|