Skip to content

Commit

Permalink
fix initializing && update chart.js to 4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed May 21, 2023
1 parent 11a52f2 commit 9eec936
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 8 deletions.
33 changes: 26 additions & 7 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"@redocly/json-to-json-schema": "^0.0.1",
"@tanstack/svelte-table": "^8.9.1",
"ag-grid-svelte": "^0.1.4",
"chart.js": "^3.9.1",
"chart.js": "^4.3.0",
"chartjs-adapter-date-fns": "^3.0.0",
"chartjs-plugin-zoom": "^2.0.0",
"d3-zoom": "^3.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@
}
})
if (!(initializing && componentInput?.type === 'runnable' && isRunnableDefined(componentInput))) {
initializing = false
}
// We need to make sure that old apps have correct values. Triggerable (button, form, etc) have both autoRefresh and recomputeOnInputChanged set to false
$: if (!autoRefresh && componentInput?.type === 'runnable' && componentInput.autoRefresh) {
componentInput.autoRefresh = false
Expand Down

0 comments on commit 9eec936

Please sign in to comment.