mirror of
https://github.com/apache/superset.git
synced 2026-05-07 08:54:23 +00:00
Merge branch 'master' into feat/migrate-to-vitest
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"currencyformatter.js": "^1.0.5",
|
||||
"handlebars-group-by": "^1.0.1",
|
||||
"just-handlebars-helpers": "^1.0.19"
|
||||
},
|
||||
@@ -43,6 +44,6 @@
|
||||
"react-dom": "^17.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/lodash": "^4.17.23"
|
||||
"@types/lodash": "^4.17.24"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ Handlebars.registerHelper('dateFormat', function (context, block) {
|
||||
Handlebars.registerHelper('stringify', (obj: any, obj2: any) => {
|
||||
// calling without an argument
|
||||
if (obj2 === undefined)
|
||||
throw Error('Please call with an object. Example: `stringify myObj`');
|
||||
throw new Error('Please call with an object. Example: `stringify myObj`');
|
||||
return isPlainObject(obj) ? JSON.stringify(obj) : String(obj);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user