Skip to content

Commit

Permalink
Fix server-side serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
afgomez authored and Alejandro Fernández Gómez committed Oct 26, 2020
1 parent aac524d commit bb893c2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ import { LogEntriesItemField } from '../../../../common/http_api';
import { JsonArray, JsonObject, jsonObjectRT, JsonValue } from '../../../../common/typed_json';

const serializeValue = (value: JsonValue): string => {
if (Array.isArray(value)) {
return value.map(serializeValue).join(', ');
} else if (typeof value === 'object' && value != null) {
if (typeof value === 'object' && value != null) {
return stringify(value);
} else {
return `${value}`;
Expand Down

0 comments on commit bb893c2

Please sign in to comment.