Skip to content

Commit

Permalink
fix: linting warning
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasLohoff committed Nov 18, 2024
1 parent c39ce54 commit 898e764
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/FeatureLabelModal/FeatureLabelModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ export const FeatureLabelModal: React.FC<FeatureLabelModalProps> = ({
onOk={onOkInternal}
onCancel={onCancel}
afterOpenChange={(open) => {
open && inputRef.current?.focus();
if (open) {
inputRef.current?.focus();
}
}}
{...passThroughProps}
>
Expand Down

0 comments on commit 898e764

Please sign in to comment.