Skip to content

Commit 9792ef9

Browse files
committed
fixes 2877, correct prop values passed in AddToCollectionList in IDEOVerlays
1 parent 0f5494c commit 9792ef9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

client/modules/IDE/components/IDEOverlays.jsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { useTranslation } from 'react-i18next';
33
import { useDispatch, useSelector } from 'react-redux';
4-
import { useLocation } from 'react-router-dom';
4+
import { useLocation, useParams } from 'react-router-dom';
55
import Overlay from '../../App/components/Overlay';
66
import {
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 && (

0 commit comments

Comments
 (0)