diff --git a/app/components/settings.tsx b/app/components/settings.tsx index 36ffdb84a..66faef598 100644 --- a/app/components/settings.tsx +++ b/app/components/settings.tsx @@ -482,7 +482,7 @@ function ImportConfigModal(props: { onClose?: () => void }) { { - props.onClose(); + props.onClose?.(); }} icon={} bordered