mirror of
https://github.com/zitadel/zitadel.git
synced 2025-02-28 20:57:24 +00:00
fix(translation_interceptor): check if response is nil (#423)
This commit is contained in:
parent
5658f33918
commit
cf51bbc36d
@ -15,7 +15,7 @@ func TranslationHandler(defaultLanguage language.Tag) func(ctx context.Context,
|
||||
|
||||
return func(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error) {
|
||||
resp, err := handler(ctx, req)
|
||||
if loc, ok := resp.(localizers); ok {
|
||||
if loc, ok := resp.(localizers); ok && resp != nil {
|
||||
translateFields(ctx, loc, translator)
|
||||
}
|
||||
return resp, err
|
||||
|
Loading…
x
Reference in New Issue
Block a user