| @@ -97,9 +97,9 @@ | ||
| 97 | 97 | |
| 98 | 98 | $query_params = 'files{ total_page, current_page, data{ id, my_cloud_id, name, owner{ id }, last_modified } }'; |
| 99 | 99 | |
| 100 | 100 | if ( $directLoad ) { |
| 101 | - $query_params = 'id, name, slug, sharedWith{ id, name, email, profile_photo }, owner{ id, name, profile_photo }, pending_invitations,' . $query_params; | |
| 101 | + $query_params = 'id, name, slug, sharedWith{ id, name, profile_photo }, owner{ id, name, profile_photo }, pending_invitations,' . $query_params; | |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | $response = $this->http()->query( |
| 105 | 105 | 'workspaceDetails', |
| @@ -173,17 +173,8 @@ | ||
| 173 | 173 | $title = $this->get_param( 'title' ); |
| 174 | 174 | $platform = $this->get_param( 'platform', 'elementor' ); |
| 175 | 175 | $share_with = $this->get_param( 'share_with' ); |
| 176 | 176 | $remove = $this->get_param( 'remove' ); |
| 177 | - | |
| 178 | - if ( empty( $title ) ) { | |
| 179 | - return $this->error( | |
| 180 | - 'invalid_name', | |
| 181 | - __( 'Workspace name cannot be empty.', 'templately' ), | |
| 182 | - 'workspaces/create', | |
| 183 | - 400 | |
| 184 | - ); | |
| 185 | - } | |
| 186 | 177 | |
| 187 | 178 | $post_args = [ |
| 188 | 179 | 'api_key' => $this->api_key, |
| 189 | 180 | 'id' => $id, |