Skip to content

Commit 4042539

Browse files
[bug] 修复解构语法造成的jenkins失败问题
(review by zq)
1 parent dbe2d03 commit 4042539

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/common/mapping/utils/SourceListModelV3.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,10 @@ export class SourceListModelV3 extends AppreciableLayerBase {
158158
const sourceType = currentData && currentData.sourceType;
159159
if (sourceType === 'WFS') {
160160
const withCredential = currentData.withCredential;
161-
const { key, value } = withCredential ?? {};
162161
let url = currentData.url;
163-
if (key && value) {
162+
if (withCredential && withCredential.key && withCredential.value) {
164163
const separator = url.includes('?') ? '&' : '?';
165-
url = `${url}${separator}${key}=${value}`
164+
url = `${url}${separator}${withCredential.key}=${withCredential.value}`
166165
}
167166
const dataset = currentData.datasets.find(dataset => dataset.msDatasetId === relationMsDatasetId);
168167
Object.assign(dataSource, {

0 commit comments

Comments
 (0)