File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/elements/content-sharing Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ function ContentSharingV2({
7272
7373 // Get initial data for the item
7474 React . useEffect ( ( ) => {
75- if ( ! api || isEmpty ( api ) || item || sharedLink ) return ;
75+ if ( ! api || isEmpty ( api ) || item ) return ;
7676
7777 ( async ( ) => {
7878 const itemData = await fetchItem ( { api, itemID, itemType } ) ;
@@ -82,7 +82,7 @@ function ContentSharingV2({
8282
8383 // Get current user
8484 React . useEffect ( ( ) => {
85- if ( ! api || isEmpty ( api ) || item || sharedLink || currentUser ) return ;
85+ if ( ! api || isEmpty ( api ) || ! item || currentUser ) return ;
8686
8787 const getUserSuccess = userData => {
8888 const { enterprise, id } = userData ;
@@ -100,7 +100,7 @@ function ContentSharingV2({
100100
101101 // Get collaborators
102102 React . useEffect ( ( ) => {
103- if ( ! api || isEmpty ( api ) || item || collaboratorsData ) return ;
103+ if ( ! api || isEmpty ( api ) || ! item || collaboratorsData ) return ;
104104
105105 ( async ( ) => {
106106 try {
You can’t perform that action at this time.
0 commit comments