Skip to content

Commit

Permalink
Fix ContentViewComponent add method
Browse files Browse the repository at this point in the history
  • Loading branch information
sambible committed Jun 20, 2023
1 parent 9b267eb commit e43b6a6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions nailgun/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
from nailgun import client
from nailgun import entity_fields
from nailgun.entity_mixins import _get_entity_ids
from nailgun.entity_mixins import _payload
from nailgun.entity_mixins import _poll_task
from nailgun.entity_mixins import Entity
from nailgun.entity_mixins import EntityCreateMixin
Expand Down Expand Up @@ -2893,8 +2892,6 @@ def add(self, synchronous=True, timeout=None, **kwargs):
if 'data' not in kwargs:
# data is required
kwargs['data'] = dict()
if 'component_ids' not in kwargs['data']:
kwargs['data']['components'] = [_payload(self.get_fields(), self.get_values())]
kwargs.update(self._server_config.get_client_kwargs())
response = client.put(self.path('add'), **kwargs)
return _handle_response(response, self._server_config, synchronous, timeout)
Expand Down

0 comments on commit e43b6a6

Please sign in to comment.