Fix Bots panels to show bots.

This commit is contained in:
Thomas E Lackey 2020-06-22 23:19:41 -05:00
parent ac52279d3c
commit 64be86a022
2 changed files with 5 additions and 5 deletions

View File

@ -17,12 +17,12 @@ import Table from '../../../components/Table';
import TableCell from '../../../components/TableCell'; import TableCell from '../../../components/TableCell';
import moment from 'moment'; import moment from 'moment';
const AppRecords = () => { const BotRecords = () => {
const { config } = useContext(ConsoleContext); const { config } = useContext(ConsoleContext);
const [sorter, sortBy] = useSorter('createTime', false); const [sorter, sortBy] = useSorter('createTime', false);
const data = useQueryStatusReducer(useQuery(WNS_RECORDS, { const data = useQueryStatusReducer(useQuery(WNS_RECORDS, {
pollInterval: config.api.intervalQuery, pollInterval: config.api.intervalQuery,
variables: { type: 'wrn:bot' } variables: { attributes: { type: 'wrn:bot' } }
})); }));
if (!data) { if (!data) {
@ -59,4 +59,4 @@ const AppRecords = () => {
); );
}; };
export default AppRecords; export default BotRecords;

View File

@ -18,7 +18,7 @@ const useStyles = makeStyles(theme => ({
root: {} root: {}
})); }));
const Apps = () => { const Bots = () => {
// eslint-disable-next-line // eslint-disable-next-line
const classes = useStyles(); const classes = useStyles();
const [tab, setTab] = useState(TAB_RECORDS); const [tab, setTab] = useState(TAB_RECORDS);
@ -40,4 +40,4 @@ const Apps = () => {
); );
}; };
export default Apps; export default Bots;