mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +00:00
fix: translate panic for changes (#433)
* fix: refactor object-changes * fix: check if changes are nil
This commit is contained in:
parent
cde6231164
commit
66376f9213
@ -3,6 +3,9 @@ package management
|
|||||||
import "github.com/caos/zitadel/internal/api/grpc/server/middleware"
|
import "github.com/caos/zitadel/internal/api/grpc/server/middleware"
|
||||||
|
|
||||||
func (c *Changes) Localizers() []middleware.Localizer {
|
func (c *Changes) Localizers() []middleware.Localizer {
|
||||||
|
if c == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
localizers := make([]middleware.Localizer, len(c.Changes))
|
localizers := make([]middleware.Localizer, len(c.Changes))
|
||||||
for i, change := range c.Changes {
|
for i, change := range c.Changes {
|
||||||
localizers[i] = change.EventType
|
localizers[i] = change.EventType
|
||||||
|
Loading…
Reference in New Issue
Block a user