mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-16 14:25:23 +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 index = dashboardStore.dashboards.findIndex(
|
||||
(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) {
|
||||
return ElMessage.error("The dashboard name cannot be duplicate.");
|
||||
|
Loading…
Reference in New Issue
Block a user