diff --git a/src/contexts/GroupContext.js b/src/contexts/GroupContext.js index b414e75..e414090 100644 --- a/src/contexts/GroupContext.js +++ b/src/contexts/GroupContext.js @@ -134,6 +134,13 @@ export function GroupProvider({ ); } +GroupProvider.defaultProps = { + groups: [], + onGroupsChange: () => {}, + onGroupsSelect: () => {}, + disabled: false, +}; + export function useGroup() { const context = useContext(GroupContext); if (context === undefined) {