From 5881e5eeefb0590c0784bd224ee273db92f39627 Mon Sep 17 00:00:00 2001 From: Raff Viglianti Date: Tue, 26 Nov 2024 09:20:50 -0500 Subject: [PATCH] fixed bug with filename variable initialization that emerged after recent update --- src/reducers/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/reducers/index.js b/src/reducers/index.js index cdb918a..b0ead24 100644 --- a/src/reducers/index.js +++ b/src/reducers/index.js @@ -178,6 +178,7 @@ function customization(state = { } function odd(state = {}, action) { + let filename = '' switch (action.type) { case CLEAR_STATE: return {} @@ -190,7 +191,7 @@ function odd(state = {}, action) { }) return Object.assign({}, state, {customization: xml}) case EXPORT_ODD: - let filename = 'new_odd' + filename = 'new_odd' try { filename = state.customization.settings.filename } catch (e) { e }