mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
Re-enable rule no-else-return (#10861)
This commit is contained in:
committed by
GitHub
parent
76275ec410
commit
2d8f4e3aaf
@@ -168,7 +168,8 @@ export default function chartReducer(charts = {}, action) {
|
||||
if (action.type === actions.REMOVE_CHART) {
|
||||
delete charts[action.key];
|
||||
return charts;
|
||||
} else if (action.type === actions.UPDATE_CHART_ID) {
|
||||
}
|
||||
if (action.type === actions.UPDATE_CHART_ID) {
|
||||
const { newId, key } = action;
|
||||
charts[newId] = {
|
||||
...charts[key],
|
||||
|
||||
Reference in New Issue
Block a user