Skip to content

Commit e7ce054

Browse files
committed
Fix early component return in example plugin.
1 parent 49eaa41 commit e7ce054

File tree

1 file changed

+1
-1
lines changed
  • examples/add-image-alt-text-plugin

1 file changed

+1
-1
lines changed

examples/add-image-alt-text-plugin/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function ImageControls( { attributes, setAttributes } ) {
5757
select( aiStore ).getAvailableService( AI_CAPABILITIES )
5858
);
5959
if ( ! service ) {
60-
return;
60+
return null;
6161
}
6262

6363
if ( ! attributes.url ) {

0 commit comments

Comments
 (0)