Skip to content

Commit

Permalink
Fix list action items
Browse files Browse the repository at this point in the history
  • Loading branch information
electrikmilk committed Mar 17, 2024
1 parent b7c07d9 commit c13c49f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/actions/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ export default {
if (params['WFItems'].length !== 0) {
for (let item in params['WFItems']) {
const li = document.createElement('li');
const value = renderValue(params['WFItems'][item], 'List Item');
let itemValue = params['WFItems'][item];
if (typeof itemValue !== 'string') {
itemValue = itemValue['WFValue']
}
const value = renderValue(itemValue, 'List Item');
value.classList.add('sp-unstyled-value');
li.appendChild(value);
ul.appendChild(li);
Expand Down

0 comments on commit c13c49f

Please sign in to comment.