File tree 2 files changed +6
-2
lines changed
src/apps/media/src/app/components
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,9 @@ export const DnDProvider = ({
34
34
} : Props ) => {
35
35
const dispatch = useDispatch ( ) ;
36
36
const { data : currentGroup , isFetching : groupIsFetching } =
37
- useGetGroupDataQuery ( currentGroupId , { skip : ! currentGroupId } ) ;
37
+ useGetGroupDataQuery ( currentGroupId , {
38
+ skip : ! currentGroupId || currentGroupId === currentBinId ,
39
+ } ) ;
38
40
const { data : binData , isFetching : binIsFetching } = useGetBinQuery (
39
41
currentBinId ,
40
42
{ skip : ! currentBinId }
Original file line number Diff line number Diff line change @@ -30,7 +30,9 @@ export const UploadButton: FC<UploadButton> = ({
30
30
const [ params ] = useParams ( ) ;
31
31
const triggerUpload = ( params as URLSearchParams ) . get ( "triggerUpload" ) ;
32
32
const { data : currentGroup , isFetching : groupIsFetching } =
33
- useGetGroupDataQuery ( currentGroupId , { skip : ! currentGroupId } ) ;
33
+ useGetGroupDataQuery ( currentGroupId , {
34
+ skip : ! currentGroupId || currentGroupId === currentBinId ,
35
+ } ) ;
34
36
const { data : binData , isFetching : binIsFetching } = useGetBinQuery (
35
37
currentBinId ,
36
38
{ skip : ! currentBinId }
You can’t perform that action at this time.
0 commit comments