mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-17 13:15:24 +00:00
fix id
This commit is contained in:
parent
ea81614aaf
commit
442a24eedc
@ -155,7 +155,7 @@ async function importTemplates(event: any) {
|
|||||||
const { layer, name, entity } = item.configuration;
|
const { layer, name, entity } = item.configuration;
|
||||||
const index = dashboardStore.dashboards.findIndex(
|
const index = dashboardStore.dashboards.findIndex(
|
||||||
(d: DashboardItem) =>
|
(d: DashboardItem) =>
|
||||||
d.name === name && d.entity === entity && d.layer === layer
|
d.name === name && d.entity === entity && d.layer === layer && !item.id
|
||||||
);
|
);
|
||||||
if (index > -1) {
|
if (index > -1) {
|
||||||
return ElMessage.error("The dashboard name cannot be duplicate.");
|
return ElMessage.error("The dashboard name cannot be duplicate.");
|
||||||
|
Loading…
Reference in New Issue
Block a user