Skip to content

Commit

Permalink
use named export
Browse files Browse the repository at this point in the history
  • Loading branch information
barbalex committed Oct 27, 2024
1 parent 3fb82f5 commit cd9576c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Projekte/Karte/layers/onTileError.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// TODO: need to debounce
import axios from 'redaxios'

import xmlToJson from '../../../../modules/xmlToJson.js'
import { xmlToJson } from '../../../../modules/xmlToJson.js'

const onTileError = async (store, map, layer, ignore) => {
console.log('onTileError', { ignore, map, layer, store })
Expand Down
4 changes: 1 addition & 3 deletions src/modules/xmlToJson.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* - layer title
* - properties
*/
const xmlToJson = (xml) => {
export const xmlToJson = (xml) => {
// Create the return object
let obj = {}

Expand Down Expand Up @@ -45,5 +45,3 @@ const xmlToJson = (xml) => {

return obj
}

export default xmlToJson
3 changes: 2 additions & 1 deletion src/modules/xmlToLayersData.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* - properties
*/
import sortBy from 'lodash/sortBy'
import xmlToJson from './xmlToJson.js'

import { xmlToJson } from './xmlToJson.js'

const xmlToLayersData = (xml) => {
const obj = xmlToJson(xml)
Expand Down

0 comments on commit cd9576c

Please sign in to comment.