Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only update gallery flag if fetch result is explicitly boolean
This adds the flag to the destructuring of the fetch callback (so it is not binding to the stale closure value), and also conditionally updates the global only if the type is explicitly boolean. This avoids a scenario in which updates to other editor settings which omit the gallery flag property result in the global value being overwritten with `undefined`.
- Loading branch information