Skip to content

Commit

Permalink
Add TODO to remove special handling for internalWidgetId when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
stacimc committed Feb 23, 2022
1 parent 474bbe2 commit 32d3eca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/server-side-render/src/server-side-render.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export default function ServerSideRender( props ) {

// The __internalWidgetId is only defined on the client-side and must be removed before making the
// request.
// TODO: Remove when the API is updated to allow additional properties: https://github.com/WordPress/gutenberg/issues/38754.
const retainedAttributes = omit( attributes, [ '__internalWidgetId' ] );

// If httpMethod is 'POST', send the attributes in the request body instead of the URL.
Expand Down

0 comments on commit 32d3eca

Please sign in to comment.