Skip to content

Commit

Permalink
fix(tableIcon): fix when press icon
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianoforlenza committed Mar 16, 2018
1 parent 9fcf255 commit a05e561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Table/TableIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const TableIcon = ({column, datum}) => (
isFunction(column.icon) ? column.icon(datum) : column.icon,
isFunction(column.color) ? column.color(datum) : column.color
)}
onPress={() => column.onPress(datum)}
onPress={() => (column.onPress ? column.onPress(datum) : null)}
/>
);

Expand Down

0 comments on commit a05e561

Please sign in to comment.