Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supprimer une erreur dans le console quand on commence une nouvelle déclaration #1533

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/src/utils/forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const transformArrayByColumn = (arr, numberOfColumns) => {
Utile pour l'affichage des checkboxes dans des grilles de colonnes.
*/
const result = []
if (!arr) return result
const fullRows = Math.floor(arr.length / numberOfColumns) // Les rangées pleines
const remainingItems = arr.length % numberOfColumns // Les éléments qui resterons dans une dernière rangée

Expand Down
Loading