Fix the jslint warning (or infinate loop error when fixed) from useSelect usage.
Pulled the subfolder value (once) and set it in the initial call to useState rather than using that state in the useSelect when fetching the current theme's subfolder.
Fixes jslint warning and everything works as expected.
(To test, create a new theme using the Editor interface. It should be created in the same subfolder as the currently activated theme)
Fix the jslint warning (or infinate loop error when fixed) from useSelect usage.
Pulled the subfolder value (once) and set it in the initial call to
useState
rather than using that state in theuseSelect
when fetching the current theme's subfolder.Fixes jslint warning and everything works as expected.
(To test, create a new theme using the Editor interface. It should be created in the same subfolder as the currently activated theme)