Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
Add unsaved grid logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dzbo committed Nov 7, 2024
1 parent 66772af commit dc75120
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions domains/grid/utils/compareGridWidgets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,9 @@ export const compareGridWidgets = (
}
}

if (gridLog.enabled && result.length > 0) {
gridLog('Unsaved widget changes', toRaw(result))
}

return result
}
4 changes: 4 additions & 0 deletions domains/grid/utils/compareGrids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@ export const compareGrids = (gridA: Grid[], gridB: Grid[]): GridChange[] => {
}
}

if (gridLog.enabled && result.length > 0) {
gridLog('Unsaved grid changes', toRaw(result))
}

return result
}

0 comments on commit dc75120

Please sign in to comment.