fix: channel edit settings key error

This commit is contained in:
MartialBE 2024-06-01 14:36:44 +08:00
parent 9321427c6e
commit 14c59c9f09
No known key found for this signature in database
GPG Key ID: 27C0267EC84B0A5C

View File

@ -163,7 +163,7 @@ const EditModal = ({ open, channelId, onCancel, onOk }) => {
values.other = 'v2.1';
}
if (values.key === '') {
if (values.config.ak !== '' && values.config.sk !== '' && values.config.region !== '') {
if (values.config.ak && values.config.sk && values.config.region) {
values.key = `${values.config.ak}|${values.config.sk}|${values.config.region}`;
}
}