Explorar o código

onUpdate modalClose();

visuddhinanda %!s(int64=2) %!d(string=hai) anos
pai
achega
6752a168b6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dashboard/src/components/term/TermModal.tsx

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

@@ -81,7 +81,7 @@ const TermModalWidget = ({
           parentChannelId={parentChannelId}
           parentChannelId={parentChannelId}
           parentStudioId={parentStudioId}
           parentStudioId={parentStudioId}
           onUpdate={(value: ITermDataResponse) => {
           onUpdate={(value: ITermDataResponse) => {
-            setIsModalOpen(false);
+            modalClose();
             if (typeof onUpdate !== "undefined") {
             if (typeof onUpdate !== "undefined") {
               onUpdate(value);
               onUpdate(value);
             }
             }