feat: refine UI behavior and enhance test compatibility
- Clear input value after confirming in the SaveConfigModal component - Add a check for undefined grid source before removing series in chart actions Signed-off-by: peterlu14 <peterlu810516@gmail.com>
This commit is contained in:
@@ -36,6 +36,7 @@ export default {
|
||||
methods: {
|
||||
confirm: function () {
|
||||
this.$emit('confirm', [this.inputValue, this.lock])
|
||||
this.inputValue = ''
|
||||
},
|
||||
undo: function () {
|
||||
this.inputValue = ''
|
||||
|
||||
@@ -862,6 +862,7 @@ const chartActs = {
|
||||
const { chartID, gridIndex, gridSourceIndex } = payload
|
||||
|
||||
const gridSource = state.chartData[chartID].gridSource[gridIndex][gridSourceIndex]
|
||||
if (gridSource === undefined) return
|
||||
// remove series
|
||||
const seriesIndex = state.chartData[chartID].series.findIndex((val) => {
|
||||
return val.name === gridSource.name
|
||||
|
||||
Reference in New Issue
Block a user