Update prettier/eslint
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
import { createReducer } from '@reduxjs/toolkit';
|
||||
import {
|
||||
CLEAR_ERROR,
|
||||
CLEAR_INFO,
|
||||
SET_ERROR_INFO,
|
||||
SET_INFO,
|
||||
} from '../actions/error_actions';
|
||||
import { CLEAR_ERROR, CLEAR_INFO, SET_ERROR_INFO, SET_INFO } from '../actions/error_actions';
|
||||
|
||||
export const errorReducer = createReducer(
|
||||
{
|
||||
@@ -16,8 +11,7 @@ export const errorReducer = createReducer(
|
||||
},
|
||||
{
|
||||
[CLEAR_ERROR]: (state) => {
|
||||
const errorStack =
|
||||
state.ErrorStack.length > 0 ? state.ErrorStack.slice(1) : [];
|
||||
const errorStack = state.ErrorStack.length > 0 ? state.ErrorStack.slice(1) : [];
|
||||
return {
|
||||
...state,
|
||||
DisplayError: errorStack.length > 0,
|
||||
@@ -25,8 +19,7 @@ export const errorReducer = createReducer(
|
||||
};
|
||||
},
|
||||
[CLEAR_INFO]: (state) => {
|
||||
const infoStack =
|
||||
state.InfoStack.length > 0 ? state.InfoStack.slice(1) : [];
|
||||
const infoStack = state.InfoStack.length > 0 ? state.InfoStack.slice(1) : [];
|
||||
return {
|
||||
...state,
|
||||
DisplayInfo: infoStack.length > 0,
|
||||
|
||||
@@ -140,9 +140,7 @@ export const createMountReducer = (state) => {
|
||||
let autoMountProcessed = { ...state.AutoMountProcessed };
|
||||
delete autoMountProcessed[action.payload];
|
||||
|
||||
const remoteMounts = state.RemoteMounts.filter(
|
||||
(i) => i !== action.payload
|
||||
);
|
||||
const remoteMounts = state.RemoteMounts.filter((i) => i !== action.payload);
|
||||
const s3Mounts = state.S3Mounts.filter((i) => i !== action.payload);
|
||||
return {
|
||||
...state,
|
||||
|
||||
Reference in New Issue
Block a user