Wizard: Fix activation keys list refresh
We've been refetching the data, but not re-rendering the list. This should fix the issue.
This commit is contained in:
parent
e500efc56b
commit
4512c0b95f
1 changed files with 4 additions and 3 deletions
|
|
@ -95,10 +95,11 @@ const ActivationKeysList = () => {
|
|||
setSelectOptions(filteredKeys);
|
||||
}
|
||||
|
||||
// This useEffect hook should run *only* on when the filter value changes.
|
||||
// This useEffect hook should run *only* on when the filter value
|
||||
// or the original array of keys changes.
|
||||
// eslint's exhaustive-deps rule does not support this use.
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [filterValue]);
|
||||
}, [filterValue, activationKeys?.body]);
|
||||
|
||||
const setActivationKey = (
|
||||
_event: React.MouseEvent<Element, MouseEvent>,
|
||||
|
|
@ -189,7 +190,7 @@ const ActivationKeysList = () => {
|
|||
);
|
||||
}
|
||||
|
||||
if (!isSuccessActivationKeys && isFetchingActivationKeys) {
|
||||
if (isFetchingActivationKeys) {
|
||||
selectOptionsElement.push(
|
||||
<SelectOption key="Fetching" value="loader">
|
||||
<Spinner size="md" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue