fix: resolve TypeError in CicdIntegrationView
This commit is contained in:
parent
9bcae2ebf3
commit
6cd28b98f0
|
|
@ -254,8 +254,8 @@ export default function CicdIntegrationView() {
|
||||||
const [baseUrl, setBaseUrl] = useState(window.location.origin);
|
const [baseUrl, setBaseUrl] = useState(window.location.origin);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
api.get('/api/test-suites').then(r => setSuites(r.data || [])).catch(() => {});
|
api('/api/test-suites').then(r => r.json()).then(data => setSuites(data || [])).catch(() => {});
|
||||||
api.get('/api/auth/agent-tokens').then(r => setApiKeys(r.data || [])).catch(() => {});
|
api('/api/auth/agent-tokens').then(r => r.json()).then(data => setApiKeys(data || [])).catch(() => {});
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const selectedSuite = suites.find(s => String(s.id) === String(selectedSuiteId));
|
const selectedSuite = suites.find(s => String(s.id) === String(selectedSuiteId));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue