Commit b7341e6a authored by janis.streib's avatar janis.streib 🦉
Browse files

FIX: null transcation error

parent 6089437f
Pipeline #91384 passed with stages
in 7 minutes and 42 seconds
...@@ -55,7 +55,7 @@ const store = new Vuex.Store({ ...@@ -55,7 +55,7 @@ const store = new Vuex.Store({
done: JSON.parse(window.localStorage.getItem('done')) || [], done: JSON.parse(window.localStorage.getItem('done')) || [],
undone: JSON.parse(window.localStorage.getItem('undone')) || [], undone: JSON.parse(window.localStorage.getItem('undone')) || [],
undo_redo_new_mutaion: JSON.parse(window.localStorage.getItem('undo_redo_new_mutation')) || true, undo_redo_new_mutaion: JSON.parse(window.localStorage.getItem('undo_redo_new_mutation')) || true,
transaction_error: JSON.parse(window.localStorage.getItem('transaction_error')) || {} transaction_error: JSON.parse(window.localStorage.getItem('transaction_error')) || null
}, },
mutations: { mutations: {
emptyState(state) { emptyState(state) {
...@@ -113,7 +113,7 @@ const store = new Vuex.Store({ ...@@ -113,7 +113,7 @@ const store = new Vuex.Store({
state.undo_redo_new_mutaion = true state.undo_redo_new_mutaion = true
state.undone = [] state.undone = []
state.done = [] state.done = []
state.transaction_error = {} state.transaction_error = null
window.localStorage.removeItem('done') window.localStorage.removeItem('done')
window.localStorage.removeItem('undone') window.localStorage.removeItem('undone')
window.localStorage.removeItem('undo_redo_new_mutation') window.localStorage.removeItem('undo_redo_new_mutation')
...@@ -187,7 +187,7 @@ const store = new Vuex.Store({ ...@@ -187,7 +187,7 @@ const store = new Vuex.Store({
window.localStorage.removeItem('undone') window.localStorage.removeItem('undone')
window.localStorage.removeItem('undo_redo_new_mutation') window.localStorage.removeItem('undo_redo_new_mutation')
window.localStorage.removeItem('ta_list') window.localStorage.removeItem('ta_list')
state.transaction_error = {} state.transaction_error = null
window.localStorage.setItem('transaction_error', JSON.stringify(state.transaction_error)) window.localStorage.setItem('transaction_error', JSON.stringify(state.transaction_error))
} catch (e) { } catch (e) {
window.console.debug(e.response) window.console.debug(e.response)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment