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

View File

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