-
-
Notifications
You must be signed in to change notification settings - Fork 180
Open
Labels
Description
Description
We renamed blockType to blockLabel in the main repo but applied a patch to v1 and v2 scripts for backward compatibility: freeCodeCamp/freeCodeCamp@7b606a7.
Mobile has also been updated to handle both blockType and blockLabel:
mobile/mobile-app/lib/models/learn/curriculum_model.dart
Lines 236 to 239 in 1a5b519
| // Support both blockLabel and blockType for backward compatibility | |
| label: (data['blockLabel'] ?? data['blockType']) != null | |
| ? blockLabelFromString(data['blockLabel'] ?? data['blockType']) | |
| : BlockLabel.legacy, |
The next steps are:
- Update v2 script to return
blockLabel - Once that change is live, remove
blockLabelfrom thecurriculum_model's parsing logic
Reactions are currently unavailable