Skip to content

Commit a3bba90

Browse files
committed
Fetch broker configs on mount so defaults are ready when the modal opens
1 parent 3a116e4 commit a3bba90

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

frontend/src/components/pages/topics/CreateTopicModal/create-topic-modal.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,11 @@ export function CreateTopicModal({ isOpen, onClose }: { isOpen: boolean; onClose
857857
},
858858
}) as CreateTopicModalState;
859859

860+
// Fetch broker configs on mount so defaults are ready when the modal opens
861+
useEffect(() => {
862+
api.refreshCluster();
863+
}, []);
864+
860865
useEffect(() => {
861866
if (isOpen) {
862867
api.refreshCluster();

0 commit comments

Comments
 (0)