Skip to content

Commit

Permalink
fixed bug with filename variable initialization that emerged after re…
Browse files Browse the repository at this point in the history
…cent update
  • Loading branch information
raffazizzi committed Nov 26, 2024
1 parent c14faed commit 5881e5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/reducers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ function customization(state = {
}

function odd(state = {}, action) {
let filename = ''
switch (action.type) {
case CLEAR_STATE:
return {}
Expand All @@ -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 }
Expand Down

0 comments on commit 5881e5e

Please sign in to comment.