We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbe2d03 commit 4042539Copy full SHA for 4042539
1 file changed
src/common/mapping/utils/SourceListModelV3.js
@@ -158,11 +158,10 @@ export class SourceListModelV3 extends AppreciableLayerBase {
158
const sourceType = currentData && currentData.sourceType;
159
if (sourceType === 'WFS') {
160
const withCredential = currentData.withCredential;
161
- const { key, value } = withCredential ?? {};
162
let url = currentData.url;
163
- if (key && value) {
+ if (withCredential && withCredential.key && withCredential.value) {
164
const separator = url.includes('?') ? '&' : '?';
165
- url = `${url}${separator}${key}=${value}`
+ url = `${url}${separator}${withCredential.key}=${withCredential.value}`
166
}
167
const dataset = currentData.datasets.find(dataset => dataset.msDatasetId === relationMsDatasetId);
168
Object.assign(dataSource, {
0 commit comments