Fix UpdateTierCredentialsModal For MinIO tier (#2459)
This commit is contained in:
@@ -62,9 +62,6 @@ const UpdateTierCredentialsModal = ({
|
||||
}: ITierCredentialsModal) => {
|
||||
const dispatch = useAppDispatch();
|
||||
const [savingTiers, setSavingTiers] = useState<boolean>(false);
|
||||
const [accessKey, setAccessKey] = useState<string>("");
|
||||
const [secretKey, setSecretKey] = useState<string>("");
|
||||
|
||||
const [creds, setCreds] = useState<string>("");
|
||||
const [encodedCreds, setEncodedCreds] = useState<string>("");
|
||||
|
||||
@@ -152,9 +149,9 @@ const UpdateTierCredentialsModal = ({
|
||||
name="accessKey"
|
||||
label="Access Key"
|
||||
placeholder="Enter Access Key"
|
||||
value={accessKey}
|
||||
value={accountName}
|
||||
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
setAccessKey(e.target.value);
|
||||
setAccountName(e.target.value);
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
@@ -164,9 +161,9 @@ const UpdateTierCredentialsModal = ({
|
||||
name="secretKey"
|
||||
label="Secret Key"
|
||||
placeholder="Enter Secret Key"
|
||||
value={secretKey}
|
||||
value={accountKey}
|
||||
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
setSecretKey(e.target.value);
|
||||
setAccountKey(e.target.value);
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user