handle no section param

This commit is contained in:
paul sealock 2024-05-30 13:37:04 +12:00
parent b51ee52fd0
commit 884f00cf73
1 changed files with 3 additions and 1 deletions

View File

@ -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>