()
| 390 | } |
| 391 | |
| 392 | function saveCurrentLayout() { |
| 393 | const layout = {}; |
| 394 | getCards().forEach(card => { |
| 395 | const zone = currentZoneForCard(card); |
| 396 | if (zone) layout[card.id] = zone; |
| 397 | }); |
| 398 | ORDER_TRACKED_ZONES.forEach(zoneId => captureZoneOrder(layout, zoneId)); |
| 399 | writeLayout(layout); |
| 400 | } |
| 401 | |
| 402 | function getZoneOrder(layout, zoneId) { |
| 403 | if (!layout || typeof layout !== 'object') return []; |
no test coverage detected