Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Commit

Permalink
Show search attribute keys in history (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
feedmeapples authored May 7, 2021
1 parent b74266f commit ab0ae4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/temporal-client/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ function uiTransform(item, rawPayloads=false, transformingPayloads=false) {
} else if (subvalue && typeof subvalue === 'object') {
if (_uiTransformPayloadKeys.includes(subkey)) {
if (subkey === _searchAttributes) {
let values = [];
const values = {};

Object.entries(subvalue.indexedFields).forEach(
([subkey, subvalue]) => {
values = [...values, subvalue.data.toString('utf8')];
values[subkey] = subvalue.data.toString('utf8');
}
);
item[subkey] = values;
Expand Down

0 comments on commit ab0ae4b

Please sign in to comment.