Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,23 @@

## Unreleased

## 2026-05-27 - 0.25.2

- Fix issue with table policy warning firing to eagerly.
- Add minimum release age to pnpm config.

## 2026-05-26 - 0.25.1

- Update node and pnpm versions.

## 2026-05-22 - 0.25.0

- Migrate from yarn to pnpms
- Dependabot: Bump react-intl from 7.1.11 to 7.1.14
- Dependabot: Bump flatted from 3.3.1 to 3.4.2
- Dependabot: Bump ws from 8.18.0 to 8.20.1
- Dependabot: Bump fast-uri from 3.0.3 to 3.1.2
- Dependabot: Bump nginx from 1.29.7 to 1.29.8
- Migrate from yarn to pnpm.
- Dependabot: Bump react-intl from 7.1.11 to 7.1.14.
- Dependabot: Bump flatted from 3.3.1 to 3.4.2.
- Dependabot: Bump ws from 8.18.0 to 8.20.1.
- Dependabot: Bump fast-uri from 3.0.3 to 3.1.2.
- Dependabot: Bump nginx from 1.29.7 to 1.29.8.

## 2026-05-19 - 0.24.2

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cratedb/crate-gc-admin",
"version": "0.25.1",
"version": "0.25.2",
"author": "cratedb",
"private": false,
"type": "module",
Expand Down
17 changes: 11 additions & 6 deletions src/routes/Automation/hooks/useEligibleColumns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,13 @@ export default function useEligibleColumns({
// Update eligible columns if targets changes
if (targets.length === 0) {
setEligibleColumns([]);
} else {
setLoadingColumns(true);
getEligibleColumns(gcApi, targets).then(columns => {
setLoadingColumns(false);
return;
}

setLoadingColumns(true);
getEligibleColumns(gcApi, targets)
.then(columns => {
if (columns !== null) {
const eligibleColumns = Object.keys(columns.eligible_columns).map(
columnName => {
Expand All @@ -81,9 +85,10 @@ export default function useEligibleColumns({
} else {
setEligibleColumns([]);
}
})
.finally(() => {
setLoadingColumns(false);
});
}
setLoadingColumns(false);
}, [targets]);

useEffect(() => {
Expand Down Expand Up @@ -133,7 +138,7 @@ export default function useEligibleColumns({
});

setShowColumnsWarning(!isValid);
}, [tables, targets, columnName, loadingColumns]);
}, [tables, targets, columnName, loadingColumns, eligibleColumns]);

return {
eligibleColumns,
Expand Down
Loading