Skip to content

Commit a7ed4c4

Browse files
fix: don't camel case null objects (#248)
1 parent 2e5ae0e commit a7ed4c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/frontend/src/app/core/services/dispatcher.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class DispatcherService {
6060
}
6161

6262
private convertProtoFieldNamesToCamelCase(obj: any, parentField: string = null): any {
63-
if (typeof obj !== 'object') {
63+
if (typeof obj !== 'object' || obj === null) {
6464
return obj;
6565
}
6666
if (Array.isArray(obj)) {

0 commit comments

Comments
 (0)