mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-15 12:49:17 +00:00
fix: topn type (#267)
This commit is contained in:
@@ -85,7 +85,7 @@ limitations under the License. -->
|
||||
type="number"
|
||||
:min="1"
|
||||
:max="100"
|
||||
@change="changeConfigs(index, { topN: currentMetric.topN || 10 })"
|
||||
@change="changeConfigs(index, { topN: Number(currentMetric.topN) || 10 })"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -150,7 +150,7 @@ limitations under the License. -->
|
||||
() => {
|
||||
currentMetric.value = {
|
||||
...props.currentMetricConfig,
|
||||
topN: props.currentMetricConfig.topN || 10,
|
||||
topN: Number(props.currentMetricConfig.topN) || 10,
|
||||
};
|
||||
},
|
||||
);
|
||||
|
Reference in New Issue
Block a user