execute designed query

This commit is contained in:
Jan Prochazka
2020-12-29 18:44:28 +01:00
parent 290acdb68a
commit 4962d81661
6 changed files with 59 additions and 26 deletions

View File

@@ -27,7 +27,7 @@ export default function ResultTabs({ children, sessionId, executeNumber }) {
}, [sessionId, socket]);
return (
<TabControl activePageIndex={resultInfos.length > 0 ? 1 : 0}>
<TabControl activePageLabel={resultInfos.length > 0 ? 'Result 1' : null}>
{children}
{_.sortBy(resultInfos, 'resultIndex').map((info) => (
<TabPage label={`Result ${info.resultIndex + 1}`} key={info.jslid}>