Skip to content

Commit 02b1a5a

Browse files
committed
Compare entities by address
1 parent fb5154d commit 02b1a5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usecases/usecase/usecase.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func (u *UseCaseBase) indexAndScenariosOfEntity(entity spineapi.EntityRemoteInte
127127
defer u.mux.Unlock()
128128

129129
for i, remoteEntity := range u.availableEntityScenarios {
130-
if entity == remoteEntity.Entity {
130+
if entity != nil && entity.Address() == remoteEntity.Entity.Address() {
131131
return i, remoteEntity.Scenarios
132132
}
133133
}

0 commit comments

Comments
 (0)