diff --git a/web/components/integration/single-integration-card.tsx b/web/components/integration/single-integration-card.tsx index 999a12bb5..f5ff2b326 100644 --- a/web/components/integration/single-integration-card.tsx +++ b/web/components/integration/single-integration-card.tsx @@ -112,7 +112,7 @@ export const SingleIntegrationCard: React.FC = observer(({ integration })

{integration.title} {workspaceIntegrations - ? isInstalled && + ? isInstalled && : null}

diff --git a/web/components/labels/create-label-modal.tsx b/web/components/labels/create-label-modal.tsx index 6fe578459..e298cda48 100644 --- a/web/components/labels/create-label-modal.tsx +++ b/web/components/labels/create-label-modal.tsx @@ -46,10 +46,18 @@ export const CreateLabelModal: React.FC = observer((props) => { control, reset, setValue, + setFocus, } = useForm({ defaultValues, }); + /** + * For setting focus on name input + */ + useEffect(() => { + setFocus("name"); + }, [setFocus, isOpen]); + useEffect(() => { if (isOpen) setValue("color", getRandomLabelColor()); }, [setValue, isOpen]);