fix: channel edit settings key error (#1496)

This commit is contained in:
Buer
2024-06-13 00:08:49 +08:00
committed by GitHub
parent c1971870fa
commit 6aafb7a99e

View File

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