| title | Leaflet Maps Plugin Context |
|---|
- Last updated:
2026-04-07
- Project type: WordPress Gutenberg block plugin built with React
- Local repo:
/Users/aarongilani/Dev_Arena/React/leaflet-maps-plugin - Remote:
git@github.com:Vincent-Design-Inc/leaflet-maps-plugin.git - Current branch:
main - Worktree state: clean
- Task code prefix:
LFMP - Status: Completed
- LFMP-01 Issue #10 bailout fix | Completed: 2026-03-23
- User-provided reference:
https://github.com/Vincent-Design-Inc/leaflet-maps-plugin/issues/10 - Current PM read: the issue is causing the plugin to bail out in some cases and should be treated as a contained bug-fix lane for tomorrow, not a broad plugin enhancement pass.
- Local stack:
@wordpress/scriptsreact-leafletleaflet- WordPress block plugin with
src/and compiledbuild/
- The strongest local signal is in
/Users/aarongilani/Dev_Arena/React/leaflet-maps-plugin/src/api.jsand/Users/aarongilani/Dev_Arena/React/leaflet-maps-plugin/src/LeafletMap.js. - Specific guard-risk notes:
hasRequiredData()callsthis.isValidCPT(slug)without awaiting it, so the guard is not behaving like a real validity check.hasRequiredData()dereferencesresponse[0].acfwithout first confirmingresponse[0]exists, which can throw on empty result sets and cascade into an early bailout.fetchLocations()inLeafletMap.jsbails whenhasRequiredData()returns falsey, so weak guard handling can surface as a full plugin stop rather than a degraded state.
4hassumes the task is:- reproduce or reason through the bailout condition
- fix the guard / validation path
- run build or tests for verification
- capture any needed note on the issue
- Add
2hif the issue turns out to involve broader FacetWP, ACF, or REST-shape compatibility handling beyond the local guard logic.
- Update on
2026-03-23: user reported that the bug is resolved and the functionality is now working as expected.