From 64be86a022b7d76614a0f8034681d9adb6ec2eb8 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Mon, 22 Jun 2020 23:19:41 -0500 Subject: [PATCH] Fix Bots panels to show bots. --- .../console-app/src/containers/panels/bots/BotRecords.js | 6 +++--- packages/console-app/src/containers/panels/bots/Bots.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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;