Simplify naming in PluginsTabPanel.
This commit is contained in:
parent
b18e1705cd
commit
5e6cd11028
|
@ -60,10 +60,8 @@ export const PluginsTabPanel = ( {
|
|||
null
|
||||
);
|
||||
const { installAndActivatePlugins } = useDispatch( PLUGINS_STORE_NAME );
|
||||
const {
|
||||
loadInstalledPluginsAfterActivation:
|
||||
loadInstalledExtensionsAfterActivation,
|
||||
} = useInstalledPluginsWithoutChannels();
|
||||
const { loadInstalledPluginsAfterActivation } =
|
||||
useInstalledPluginsWithoutChannels();
|
||||
|
||||
/**
|
||||
* Install and activate a plugin.
|
||||
|
@ -88,7 +86,7 @@ export const PluginsTabPanel = ( {
|
|||
] );
|
||||
|
||||
onInstallAndActivate( plugin.product );
|
||||
loadInstalledExtensionsAfterActivation( plugin.product );
|
||||
loadInstalledPluginsAfterActivation( plugin.product );
|
||||
createNoticesFromResponse( response );
|
||||
} catch ( error ) {
|
||||
createNoticesFromResponse( error );
|
||||
|
|
Loading…
Reference in New Issue