fix: wrong formatter of some charts in monitor (#137)

* fix: wrong formatter of some charts in monitor

* chore: remove useless

---------

Co-authored-by: yaojiping <yaojiping@infini.ltd>
This commit is contained in:
yaojp123 2025-02-14 15:46:57 +08:00 committed by GitHub
parent 50b8112670
commit 7922a42513
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -239,7 +239,7 @@ export default (props) => {
ticks={item.ticks}
labelFormat={getFormatter(
item.formatType,
fixFormat(item.formatType, item.labelFormat)
fixFormat(item.formatType, item.tickFormat)
)}
tickFormat={getFormatter(
item.formatType,
@ -295,7 +295,7 @@ export default (props) => {
xAccessor={0}
tickFormat={getFormatter(
item.metric.formatType,
fixFormat(item.metric.formatType, item.metric.formatType),
fixFormat(item.metric.formatType, item.metric.format),
item.metric.units
)}
yAccessors={[1]}

View File

@ -268,7 +268,6 @@ class ClusterForm extends React.Component {
if (!values) {
return;
}
debugger
let newVals = {
name: values.name,
hosts: values.hosts,