Skip to content

Commit

Permalink
fix state
Browse files Browse the repository at this point in the history
  • Loading branch information
nmcardoso committed Dec 27, 2024
1 parent 64e8f83 commit f8d13fd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/components/appbar/Appbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function MinimalAppbar() {
<AppBar position="static" color="inherit" variant="outlined">
<Toolbar variant="dense">
{
tcState.table.state == 'success' && (
tcState.grid.isLoaded && tcState.table.state == 'success' && (
<Button
variant="contained"
onClick={() => router.push('/table')}
Expand Down
12 changes: 6 additions & 6 deletions app/components/setup/FileInputTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,12 @@ export default function FileInputTab() {
}
})

tcDispatch({
type: ContextActions.USER_FILE_INPUT,
payload: {
state: 'success'
}
})
// tcDispatch({
// type: ContextActions.USER_FILE_INPUT,
// payload: {
// state: 'success'
// }
// })

router.push('/table')
}, [tcState, router,])
Expand Down
2 changes: 1 addition & 1 deletion app/components/setup/LocalFileInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default function LocalFileInput() {
raCol: summary.raCol,
decCol: summary.decCol,
dataTypes: summary.dataTypes,
// state: summary.positionFound ? 'success' : 'positionNotFound',
state: summary.positionFound ? 'success' : 'positionNotFound',
file,
isSameFile,
}
Expand Down
2 changes: 1 addition & 1 deletion app/components/setup/RemoteFileInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default function RemoteFileInput() {
raCol: summary.raCol,
decCol: summary.decCol,
dataTypes: summary.dataTypes,
// state: summary.positionFound ? 'success' : 'positionNotFound',
state: summary.positionFound ? 'success' : 'positionNotFound',
url,
isSameFile,
}
Expand Down

0 comments on commit f8d13fd

Please sign in to comment.