fix(uns): reject equipment bind to non-existent driver + modal-xl (review)

This commit is contained in:
Joseph Doherty
2026-06-08 13:38:33 -04:00
parent 2beaa43d60
commit d637b834b9
3 changed files with 27 additions and 2 deletions
@@ -999,7 +999,12 @@ public sealed class UnsTreeService(IDbContextFactory<OtOpcUaConfigDbContext> dbF
.Select(d => d.ClusterId)
.FirstOrDefaultAsync(ct);
if (driverCluster is not null && driverCluster != lineCluster)
if (driverCluster is null)
{
return new UnsMutationResult(false, $"Driver '{input.DriverInstanceId}' not found.");
}
if (driverCluster != lineCluster)
{
return new UnsMutationResult(
false,