removes unused users field in backend store
This commit is contained in:
parent
4b3891f68a
commit
2ddb2e3fbb
|
@ -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