CreateImageWizard: use activation key in form state as init value
This commit is contained in:
parent
7aaedd67ab
commit
c3c7888610
1 changed files with 2 additions and 2 deletions
|
|
@ -5,11 +5,11 @@ import useFormApi from '@data-driven-forms/react-form-renderer/use-form-api';
|
|||
import api from '../../../api';
|
||||
|
||||
const ActivationKeys = ({ label, isRequired }) => {
|
||||
const { change } = useFormApi();
|
||||
const { change, getState } = useFormApi();
|
||||
const [ activationKeys, setActivationKeys ] = useState([]);
|
||||
const [ isOpen, setIsOpen ] = useState(false);
|
||||
const [ isLoading, setIsLoading ] = useState(false);
|
||||
const [ activationKeySelected, selectActivationKey ] = useState();
|
||||
const [ activationKeySelected, selectActivationKey ] = useState(getState()?.values?.['subscription-activation-key']);
|
||||
|
||||
useEffect(() => {
|
||||
setIsLoading(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue