Skip to content

Commit

Permalink
Default value for URL action
Browse files Browse the repository at this point in the history
  • Loading branch information
electrikmilk committed Dec 1, 2023
1 parent 7d1a9ef commit d5cbaf4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/actions/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ export default {
container.className += ' sp-blue-action';

let links: HTMLElement[] = [];
if (params['WFURLActionURL']) {
if (params['WFURLActionURL'].length !== 0) {
params['WFURLActionURL'].forEach(url => {
links.push(renderValue(url, 'URL'));
});
} else {
links.push(renderValue(null, 'URL'));
}

return renderActionHeader(actions['url'], ...links);
Expand Down

0 comments on commit d5cbaf4

Please sign in to comment.