Skip to content

Commit

Permalink
Clean code - spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
volterra79 committed Dec 27, 2024
1 parent 3cf58cf commit 36588e1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/RelationsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default {
ApplicationState.download = true;
try {
await XHR.fileDownload({
url: createRelationsUrl(Object.assign(_options, { type })),
url: createRelationsUrl(Object.assign(_options, { type })),
httpMethod: "GET",
})
}
Expand Down
4 changes: 2 additions & 2 deletions src/map/layers/layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -845,9 +845,9 @@ class Layer extends G3WObject {
}

return XHR.fileDownload({
url: this.getUrl('shapefile' === type ? 'shp' : type),
url: this.getUrl('shapefile' === type ? 'shp' : type),
httpMethod: "POST",
data,
httpMethod: "POST"
});
}

Expand Down
4 changes: 2 additions & 2 deletions src/services/queryresults.js
Original file line number Diff line number Diff line change
Expand Up @@ -1619,15 +1619,15 @@ export default new (class QueryResultsService extends G3WObject {
*
* @param active
*/
const runDownload = async (active=false) => {
const runDownload = async (active = false) => {

if (features.length > 1) {
layer.downloadformats.active = active;
this.setLayerActionTool({ layer });
}

await GUI.downloadWrapper(
({layer, type, data}= {}) => getCatalogLayerById(layer.id).getDownloadFilefromDownloadDataType(type, { data }) || Promise.resolve(),
({ layer, type, data } = {}) => getCatalogLayerById(layer.id).getDownloadFilefromDownloadDataType(type, { data }) || Promise.resolve(),
{
layer,
type,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/downloadFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export async function downloadFile({

const d = !content && url && await fetch(url, {
type: mime_type,
headers,
body: data,
headers,
method,
signal,
}) || {};
Expand Down

0 comments on commit 36588e1

Please sign in to comment.