Skip to content

Commit

Permalink
fix: add array type for not-selectable items
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-Torrent committed Aug 17, 2021
1 parent 1ee402b commit c9f2ac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/main/TreeModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ TreeModal.propTypes = {
onClose: PropTypes.func.isRequired,
title: PropTypes.string.isRequired,
prevent: PropTypes.oneOf(Object.values(TREE_PREVENT_SELECTION)),
itemId: PropTypes.string,
itemId: PropTypes.oneOfType([ PropTypes.string, PropTypes.array ]),
open: PropTypes.bool,
};

Expand Down

0 comments on commit c9f2ac4

Please sign in to comment.