File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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 , {
You can’t perform that action at this time.
0 commit comments