Explorar o código

prevent from unnecessary rendering by using activeComponents

kaoritokashiki %!s(int64=5) %!d(string=hai) anos
pai
achega
6de2650ecb
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/client/js/components/PageAccessoriesModal.jsx

+ 1 - 2
src/client/js/components/PageAccessoriesModal.jsx

@@ -76,8 +76,7 @@ const PageAccessoriesModal = (props) => {
             <TabPane tabId="timeline"></TabPane>
             <TabPane tabId="recent-changes"></TabPane>
             <TabPane tabId="attachment" className="p-4">
-              {/* {pageAccessoriesContainer.activeComponents.has('attachment') && <PageAttachment /> } */}
-              <PageAttachment />
+              {pageAccessoriesContainer.activeComponents.has('attachment') && <PageAttachment /> }
             </TabPane>
           </TabContent>
         </ModalBody>