removes unused users field in backend store
This commit is contained in:
parent
2767c21a90
commit
80065582eb
|
@ -6,7 +6,6 @@ import { permissions } from './backend/permissions'
|
|||
const INITIAL_BACKEND_UI_STATE = {
|
||||
tables: [],
|
||||
views: [],
|
||||
users: [],
|
||||
roles: [],
|
||||
datasources: [],
|
||||
queries: [],
|
||||
|
@ -302,14 +301,6 @@ export const getBackendUiStore = () => {
|
|||
})
|
||||
},
|
||||
},
|
||||
users: {
|
||||
create: user =>
|
||||
store.update(state => {
|
||||
state.users.push(user)
|
||||
state.users = state.users
|
||||
return state
|
||||
}),
|
||||
},
|
||||
roles: {
|
||||
fetch: async () => {
|
||||
const response = await api.get("/api/roles")
|
||||
|
|
Loading…
Reference in New Issue