fix(ui): update created card id
This commit is contained in:
parent
d374137e42
commit
49c408f44e
1 changed files with 1 additions and 0 deletions
|
|
@ -336,6 +336,7 @@ export default class MetricStore {
|
|||
const _metric = new Widget().fromJson(metricData);
|
||||
if (!metric.exists()) {
|
||||
toast.success('Card created successfully');
|
||||
this.instance.updateKey('metricId', _metric.metricId);
|
||||
this.addToList(_metric);
|
||||
} else {
|
||||
toast.success('Card updated successfully');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue