Skip to content

Commit

Permalink
Fixed the last of the react errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
fastlinemedia committed Sep 15, 2021
1 parent 1dca75d commit 13996f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/apps/fl-home/ui/header-bar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const HeaderBar = ( {
setIsFocused( true )
onFocus()
} }
onChange={ () => {} } // Prevent react error
/>
<Button
appearance="transparent"
Expand Down
3 changes: 2 additions & 1 deletion src/apps/fl-home/ui/sections/media/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,15 @@ const MediaGrid = ( {
// Loading placeholder
if ( null === item ) {
return (
<div />
<div key={ i } />
)
}

// Handle files currently uploading
if ( item instanceof File ) {
return (
<div
key={ i }
src={ URL.createObjectURL( item ) }
alt={ sprintf( 'Uploading %s', item.name ) }
style={ {
Expand Down
2 changes: 1 addition & 1 deletion src/apps/fl-home/ui/sections/recent-posts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const RecentPostsSection = ( { isCollapsed, ...rest } ) => {

const Actions = () => (
<select
value={ query.post_type }
onChange={ e => {
setQuery( { ...query, post_type: e.target.value } )
} }
Expand All @@ -27,7 +28,6 @@ const RecentPostsSection = ( { isCollapsed, ...rest } ) => {
<option
key={ value }
value={ value }
selected={ value === query.post_type }
>
{ def.labels.plural }
</option>
Expand Down

0 comments on commit 13996f1

Please sign in to comment.