Skip to content

Commit

Permalink
Fix chart periods of sitemaps
Browse files Browse the repository at this point in the history
"3M" for three months is an invalid chart period for a sitemap.
Replace it with "4M" for four months, which is missing.
  • Loading branch information
stefanroellin committed Nov 3, 2023
1 parent 060c14e commit 210d4fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default {
{ key: '2W', value: '2 Weeks' },
{ key: 'M', value: 'Month' },
{ key: '2M', value: '2 Months' },
{ key: '3M', value: '3 Months' },
{ key: '4M', value: '4 Months' },
{ key: 'Y', value: 'Year' }
],
inputHintDefs: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ export default {
}
})
widgetList.filter(widget => widget.component === 'Chart').forEach(widget => {
if (!(widget.config && widget.config.period && ['h', '4h', '8h', '12h', 'D', '2D', '3D', 'W', '2W', 'M', '2M', '3M', 'Y'].includes(widget.config.period))) {
if (!(widget.config && widget.config.period && ['h', '4h', '8h', '12h', 'D', '2D', '3D', 'W', '2W', 'M', '2M', '4M', 'Y'].includes(widget.config.period))) {
let label = widget.config && widget.config.label ? widget.config.label : 'without label'
validationWarnings.push(widget.component + ' widget ' + label + ', invalid period configured: ' + widget.config.period)
}
Expand Down

0 comments on commit 210d4fd

Please sign in to comment.