forked from MapComplete/MapComplete
Fix tests, fix units
This commit is contained in:
parent
8b1b843dbe
commit
fb3e3a040b
7 changed files with 52 additions and 17 deletions
|
@ -1,6 +1,7 @@
|
|||
import TagRenderingConfig from "./JSON/TagRenderingConfig";
|
||||
import * as questions from "../assets/tagRenderings/questions.json";
|
||||
import * as icons from "../assets/tagRenderings/icons.json";
|
||||
import {Utils} from "../Utils";
|
||||
|
||||
export default class SharedTagRenderings {
|
||||
|
||||
|
@ -14,7 +15,10 @@ export default class SharedTagRenderings {
|
|||
try {
|
||||
dict.set(key, new TagRenderingConfig(store[key], undefined, `SharedTagRenderings.${key}`))
|
||||
} catch (e) {
|
||||
console.error("BUG: could not parse", key, " from questions.json or icons.json - this error happened during the build step of the SharedTagRenderings", e)
|
||||
if(!Utils.runningFromConsole){
|
||||
console.error("BUG: could not parse", key, " from questions.json or icons.json - this error happened during the build step of the SharedTagRenderings", e)
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue