Skip to content

Commit

Permalink
Fix error on selecting remote data (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriszarate authored Oct 23, 2024
1 parent eaa0115 commit 2ab931b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/blocks/remote-data-container/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ export function Edit( props: BlockEditProps< RemoteDataBlockAttributes > ) {
.then( remoteData => {
if ( remoteData ) {
updateRemoteData(
{ queryInputOverrides: props.attributes.remoteData.queryInputOverrides, ...remoteData },
{
queryInputOverrides: props.attributes.remoteData?.queryInputOverrides,
...remoteData,
},
insertBlocks
);
}
Expand Down

0 comments on commit 2ab931b

Please sign in to comment.