Skip to content

Commit

Permalink
removed isRequired from columns (#861)
Browse files Browse the repository at this point in the history
- also, removed isRequired from MtableActions' onColumnsChanged propType, as it caused the same issue
  • Loading branch information
loughlinclaus3 authored Sep 1, 2024
1 parent 6303bd7 commit a1b113b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/MTableAction/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ const defaultProps = {

MTableAction.propTypes = {
action: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).isRequired,
columns: PropTypes.array.isRequired,
columns: PropTypes.array,
data: PropTypes.oneOfType([
PropTypes.object,
PropTypes.arrayOf(PropTypes.object)
]),
disabled: PropTypes.bool,
onColumnsChanged: PropTypes.func.isRequired,
onColumnsChanged: PropTypes.func,
size: PropTypes.string
};

Expand Down
4 changes: 2 additions & 2 deletions src/components/MTableActions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ function MTableActions({
}

MTableActions.propTypes = {
columns: PropTypes.array.isRequired,
columns: PropTypes.array,
components: PropTypes.object.isRequired,
actions: PropTypes.array.isRequired,
data: PropTypes.oneOfType([
PropTypes.object,
PropTypes.arrayOf(PropTypes.object)
]),
disabled: PropTypes.bool,
onColumnsChanged: PropTypes.func.isRequired,
onColumnsChanged: PropTypes.func,
size: PropTypes.string,
forwardedRef: PropTypes.element
};
Expand Down

0 comments on commit a1b113b

Please sign in to comment.