Simplify naming in PluginsTabPanel.

This commit is contained in:
Gan Eng Chin 2023-03-22 16:09:40 +08:00
parent b18e1705cd
commit 5e6cd11028
No known key found for this signature in database
GPG Key ID: 94D5D972860ADB01
1 changed files with 3 additions and 5 deletions

View File

@ -60,10 +60,8 @@ export const PluginsTabPanel = ( {
null null
); );
const { installAndActivatePlugins } = useDispatch( PLUGINS_STORE_NAME ); const { installAndActivatePlugins } = useDispatch( PLUGINS_STORE_NAME );
const { const { loadInstalledPluginsAfterActivation } =
loadInstalledPluginsAfterActivation: useInstalledPluginsWithoutChannels();
loadInstalledExtensionsAfterActivation,
} = useInstalledPluginsWithoutChannels();
/** /**
* Install and activate a plugin. * Install and activate a plugin.
@ -88,7 +86,7 @@ export const PluginsTabPanel = ( {
] ); ] );
onInstallAndActivate( plugin.product ); onInstallAndActivate( plugin.product );
loadInstalledExtensionsAfterActivation( plugin.product ); loadInstalledPluginsAfterActivation( plugin.product );
createNoticesFromResponse( response ); createNoticesFromResponse( response );
} catch ( error ) { } catch ( error ) {
createNoticesFromResponse( error ); createNoticesFromResponse( error );