diff --git a/ts/sql/Client.ts b/ts/sql/Client.ts index 00e2be96f8..e5ef3aae78 100644 --- a/ts/sql/Client.ts +++ b/ts/sql/Client.ts @@ -869,8 +869,11 @@ function handleSearchMessageJSON( ): Array { return messages.map(message => ({ json: message.json, - ...JSON.parse(message.json), + + // Empty array is a default value. `message.json` has the real field bodyRanges: [], + + ...JSON.parse(message.json), snippet: message.snippet, })); }