Skip to content

Commit 1fd0fff

Browse files
committed
code rabbit's qa fixes
1 parent 52af7b8 commit 1fd0fff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/lazy-components/design-library

src/lazy-components/design-library/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const ModalDesignLibrary = props => {
6666
// The display designs are used to list the available designs the user can choose.
6767
const [ displayDesigns, setDisplayDesigns ] = useState( [] )
6868

69-
const [ errors, setErrors ] = useState( [] )
69+
const [ errors, setErrors ] = useState( null )
7070

7171
const [ enableBackground, setEnableBackground ] = useState( false )
7272
const [ selectedContainerScheme, setSelectedContainerScheme ] = useState( '' )
@@ -87,7 +87,7 @@ const ModalDesignLibrary = props => {
8787
useEffect( () => {
8888
setIsBusy( true )
8989
setSidebarDesigns( [] )
90-
setErrors( [] )
90+
setErrors( null )
9191

9292
getDesigns( {
9393
reset: doReset,

0 commit comments

Comments
 (0)