Fix comparing of dashboard to existing one on import
This commit is contained in:
parent
9cd101fd67
commit
9484d62a93
@ -117,6 +117,11 @@ public class DashboardImportService extends BaseEntityImportService<DashboardId,
|
||||
return new Dashboard(dashboard);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean compare(EntitiesImportCtx ctx, EntityExportData<Dashboard> exportData, Dashboard prepared, Dashboard existing) {
|
||||
return super.compare(ctx, exportData, prepared, existing) || !prepared.getConfiguration().equals(existing.getConfiguration());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onEntitySaved(SecurityUser user, Dashboard savedDashboard, Dashboard oldDashboard) throws ThingsboardException {
|
||||
super.onEntitySaved(user, savedDashboard, oldDashboard);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user