Skip to content

Commit

Permalink
Merge branch 'main' into github
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitvidis committed Jul 9, 2024
2 parents 62ce878 + baaeab4 commit b9b1b02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion admin/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ export default {
)
});

if (process.env.STRAPI_ADMIN_FAVORITE_VIEWS_INJECT_TO) {
const env = typeof process === 'undefined' ? {} : process.env;

if (env.STRAPI_ADMIN_FAVORITE_VIEWS_INJECT_TO) {
for (const entry of process.env.STRAPI_ADMIN_FAVORITE_VIEWS_INJECT_TO.split(',')) {
const [pluginName, container, block] = entry.split('.');
const plugin = app.getPlugin(pluginName.replace(/^plugin::/, ''));
Expand Down

0 comments on commit b9b1b02

Please sign in to comment.