Przeglądaj źródła

:bug: update没有发消息

visuddhinanda 3 lat temu
rodzic
commit
d2880c352e
1 zmienionych plików z 6 dodań i 1 usunięć
  1. 6 1
      dashboard/src/components/term/TermModal.tsx

+ 6 - 1
dashboard/src/components/term/TermModal.tsx

@@ -48,7 +48,12 @@ const Widget = ({
           word={word}
           studioName={studioName}
           channelId={channelId}
-          onUpdate={handleOk}
+          onUpdate={() => {
+            setIsModalOpen(false);
+            if (typeof onUpdate !== "undefined") {
+              onUpdate();
+            }
+          }}
         />
       </Modal>
     </>