File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
client/modules/IDE/components Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22import { useTranslation } from 'react-i18next' ;
33import { useDispatch , useSelector } from 'react-redux' ;
4- import { useLocation } from 'react-router-dom' ;
4+ import { useLocation , useParams } from 'react-router-dom' ;
55import Overlay from '../../App/components/Overlay' ;
66import {
77 closeKeyboardShortcutModal ,
@@ -25,6 +25,7 @@ export default function IDEOverlays() {
2525 const { t } = useTranslation ( ) ;
2626 const dispatch = useDispatch ( ) ;
2727 const location = useLocation ( ) ;
28+ const params = useParams ( ) ;
2829
2930 const {
3031 modalIsVisible,
@@ -77,9 +78,7 @@ export default function IDEOverlays() {
7778 actions = { < CollectionSearchbar /> }
7879 isFixedHeight
7980 >
80- < AddToCollectionList
81- projectId = { this . state . sketchToAddToCollection . id }
82- />
81+ < AddToCollectionList projectId = { params . project_id } />
8382 </ Overlay >
8483 ) }
8584 { shareModalVisible && (
You can’t perform that action at this time.
0 commit comments