diff --git a/packages/console-app/src/containers/panels/bots/BotRecords.js b/packages/console-app/src/containers/panels/bots/BotRecords.js index 9a8d90c..2f62e84 100644 --- a/packages/console-app/src/containers/panels/bots/BotRecords.js +++ b/packages/console-app/src/containers/panels/bots/BotRecords.js @@ -17,12 +17,12 @@ import Table from '../../../components/Table'; import TableCell from '../../../components/TableCell'; import moment from 'moment'; -const AppRecords = () => { +const BotRecords = () => { const { config } = useContext(ConsoleContext); const [sorter, sortBy] = useSorter('createTime', false); const data = useQueryStatusReducer(useQuery(WNS_RECORDS, { pollInterval: config.api.intervalQuery, - variables: { type: 'wrn:bot' } + variables: { attributes: { type: 'wrn:bot' } } })); if (!data) { @@ -59,4 +59,4 @@ const AppRecords = () => { ); }; -export default AppRecords; +export default BotRecords; diff --git a/packages/console-app/src/containers/panels/bots/Bots.js b/packages/console-app/src/containers/panels/bots/Bots.js index 1ffd0e4..8f8c2cb 100644 --- a/packages/console-app/src/containers/panels/bots/Bots.js +++ b/packages/console-app/src/containers/panels/bots/Bots.js @@ -18,7 +18,7 @@ const useStyles = makeStyles(theme => ({ root: {} })); -const Apps = () => { +const Bots = () => { // eslint-disable-next-line const classes = useStyles(); const [tab, setTab] = useState(TAB_RECORDS); @@ -40,4 +40,4 @@ const Apps = () => { ); }; -export default Apps; +export default Bots;