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 1
1
import React from 'react' ;
2
2
import { useTranslation } from 'react-i18next' ;
3
3
import { useDispatch , useSelector } from 'react-redux' ;
4
- import { useLocation } from 'react-router-dom' ;
4
+ import { useLocation , useParams } from 'react-router-dom' ;
5
5
import Overlay from '../../App/components/Overlay' ;
6
6
import {
7
7
closeKeyboardShortcutModal ,
@@ -25,6 +25,7 @@ export default function IDEOverlays() {
25
25
const { t } = useTranslation ( ) ;
26
26
const dispatch = useDispatch ( ) ;
27
27
const location = useLocation ( ) ;
28
+ const params = useParams ( ) ;
28
29
29
30
const {
30
31
modalIsVisible,
@@ -77,9 +78,7 @@ export default function IDEOverlays() {
77
78
actions = { < CollectionSearchbar /> }
78
79
isFixedHeight
79
80
>
80
- < AddToCollectionList
81
- projectId = { this . state . sketchToAddToCollection . id }
82
- />
81
+ < AddToCollectionList projectId = { params . project_id } />
83
82
</ Overlay >
84
83
) }
85
84
{ shareModalVisible && (
You can’t perform that action at this time.
0 commit comments