fix(dashboard): export parseInfoBoxData for sceneInfo widget
The sceneInfo widget imports parseInfoBoxData but it wasn't exported from infoBoxWidgets.js, causing module import error. Fix: Add export keyword to parseInfoBoxData function. Error: Uncaught SyntaxError: The requested module './infoBoxWidgets.js' does not provide an export named 'parseInfoBoxData'
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
* @param {string} infoBoxText - Raw info box text
|
||||
* @returns {Object} Parsed data
|
||||
*/
|
||||
function parseInfoBoxData(infoBoxText) {
|
||||
export function parseInfoBoxData(infoBoxText) {
|
||||
if (!infoBoxText) {
|
||||
return {
|
||||
date: '', weekday: '', month: '', year: '',
|
||||
|
||||
Reference in New Issue
Block a user