Skip to content

Commit

Permalink
Fix: max seat selection condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 committed Apr 7, 2024
1 parent 9988e94 commit b0bcef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/workspace/elements/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const Element: React.FC<IElementProps> = ({
const maxSeatSelectionCheck = () => {
if (
consumer.options?.maxSeatSelectionCount &&
store.getState().editor.selectedElementIds.length > consumer.options?.maxSeatSelectionCount
store.getState().editor.selectedElementIds.length >= consumer.options?.maxSeatSelectionCount
) {
consumer.events?.onMaxSeatSelectionCountReached?.();
return true;
Expand Down

0 comments on commit b0bcef0

Please sign in to comment.