handle no section param
This commit is contained in:
parent
b51ee52fd0
commit
884f00cf73
|
@ -32,7 +32,9 @@ const Settings = ( { params } ) => {
|
|||
<div className="woocommerce-settings-content">
|
||||
<Content
|
||||
data={
|
||||
settingsData[ params.page ].sections[ section ]
|
||||
settingsData[ params.page ].sections[
|
||||
section || ''
|
||||
]
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue