Mor ui work

This commit is contained in:
Jaret Burkett
2025-02-21 12:40:17 -07:00
parent ad87f72384
commit 2b6e66e0cb
7 changed files with 44 additions and 32 deletions

View File

@@ -13,8 +13,13 @@ export default function useJobsList() {
.then(res => res.json())
.then(data => {
console.log('Jobs:', data);
setJobs(data);
setStatus('success');
if (data.error) {
console.log('Error fetching jobs:', data.error);
setStatus('error');
} else {
setJobs(data.jobs);
setStatus('success');
}
})
.catch(error => {
console.error('Error fetching datasets:', error);