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 = {
|
const INITIAL_BACKEND_UI_STATE = {
|
||||||
tables: [],
|
tables: [],
|
||||||
views: [],
|
views: [],
|
||||||
users: [],
|
|
||||||
roles: [],
|
roles: [],
|
||||||
datasources: [],
|
datasources: [],
|
||||||
queries: [],
|
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: {
|
roles: {
|
||||||
fetch: async () => {
|
fetch: async () => {
|
||||||
const response = await api.get("/api/roles")
|
const response = await api.get("/api/roles")
|
||||||
|
|
Loading…
Reference in New Issue