Skip to content

Commit

Permalink
feat(admin-ui): fix the console errors that show up on list views #357
Browse files Browse the repository at this point in the history
  • Loading branch information
syntrydy committed Jan 18, 2022
1 parent f8e6dc5 commit 9ad0431
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion plugins/admin/components/CustomScripts/ScriptListPage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState, useEffect } from 'react'
import MaterialTable from 'material-table'
import MaterialTable from '@material-table/core';
import { useHistory } from 'react-router-dom'
import { Paper } from '@material-ui/core'
import { Badge } from 'reactstrap'
Expand Down
2 changes: 0 additions & 2 deletions plugins/admin/components/Mapping/MappingPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {
} from '../../../../app/utils/PermChecker'

function MappingPage({ mapping, apiRoles, permissions, dispatch }) {
console.log('======================Roles' + JSON.stringify(apiRoles))
const { t } = useTranslation()
const [modal, setModal] = useState(false)
const toggle = () => setModal(!modal)
Expand All @@ -35,7 +34,6 @@ function MappingPage({ mapping, apiRoles, permissions, dispatch }) {

function onAddConfirmed(mappingData) {
buildPayload(userAction, 'Add new mapping', mappingData)
//dispatch(addRole(userAction))
toggle()
doFetchList()
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/auth-server/components/Clients/ClientListPage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState, useEffect } from 'react'
import MaterialTable from 'material-table'
import MaterialTable from '@material-table/core';
import { useHistory } from 'react-router-dom'
import { connect } from 'react-redux'
import { Paper } from '@material-ui/core'
Expand Down
2 changes: 1 addition & 1 deletion plugins/auth-server/components/Scopes/ScopeListPage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState, useEffect } from 'react'
import MaterialTable from 'material-table'
import MaterialTable from '@material-table/core';
import { Paper } from '@material-ui/core'
import { useHistory } from 'react-router-dom'
import { connect } from 'react-redux'
Expand Down
2 changes: 1 addition & 1 deletion plugins/schema/components/Person/AttributeListPage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState, useEffect } from 'react'
import MaterialTable from 'material-table'
import MaterialTable from '@material-table/core';
import { useHistory } from 'react-router-dom'
import { Paper } from '@material-ui/core'
import { connect } from 'react-redux'
Expand Down
2 changes: 1 addition & 1 deletion plugins/services/Components/Configuration/LdapListPage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState, useEffect } from 'react'
import MaterialTable from 'material-table'
import MaterialTable from '@material-table/core';
import { useHistory } from 'react-router-dom'
import { connect } from 'react-redux'
import { Badge } from 'reactstrap'
Expand Down
2 changes: 1 addition & 1 deletion plugins/services/Components/Configuration/SqlListPage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState, useEffect } from 'react'
import MaterialTable from 'material-table'
import MaterialTable from '@material-table/core';
import { useHistory } from 'react-router-dom'
import { connect } from 'react-redux'
import { Paper } from '@material-ui/core'
Expand Down
1 change: 0 additions & 1 deletion plugins/services/redux/sagas/CouchbaseSaga.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export function* getCouchbase() {
try {
const api = yield* newFunction()
const data = yield call(api.getCouchBaseConfig)
console.log('couchbase saga data: ', data)
yield put(getCouchBaseResponse(data))
} catch (e) {
yield put(getCouchBaseResponse(null))
Expand Down
1 change: 0 additions & 1 deletion plugins/services/redux/sagas/PersistenceTypeSaga.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export function* getPersistenceType() {
try {
const api = yield* newFunction()
const data = yield call(api.getPersistenceType)
console.log('sql saga data: ', data)
yield put(getPersistenceTypeResponse(data.persistenceType))
} catch (e) {
yield put(getPersistenceTypeResponse(null))
Expand Down

0 comments on commit 9ad0431

Please sign in to comment.