Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/ActionListRow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default class ActionListRow extends Component {
static propTypes = {
styling: PropTypes.func.isRequired,
isSelected: PropTypes.bool.isRequired,
action: PropTypes.shape({ type: PropTypes.string.isRequired }).isRequired,
action: PropTypes.object.isRequired,
isInFuture: PropTypes.bool.isRequired,
isInitAction: PropTypes.bool.isRequired,
onSelect: PropTypes.func.isRequired,
Expand All @@ -36,6 +36,11 @@ export default class ActionListRow extends Component {
const isButtonSelected = btn =>
btn === BUTTON_SKIP && isSkipped;

let actionType = action.type;
if (typeof actionType === 'undefined') actionType = '<UNDEFINED>';
else if (actionType === null) actionType = '<NULL>';
else actionType = actionType.toString() || '<EMPTY>';

return (
<div onClick={onSelect}
onMouseEnter={this.handleMouseEnter}
Expand All @@ -48,7 +53,7 @@ export default class ActionListRow extends Component {
isInFuture && 'actionListFromFuture'
], isSelected, action)}>
<div {...styling(['actionListItemName', isSkipped && 'actionListItemNameSkipped'])}>
{action.type}
{actionType}
</div>
<div {...styling('actionListItemButtons')}>
<RightSlider styling={styling} shown={!showButtons} rotate>
Expand Down