Skip to content

Commit

Permalink
fix(indiekit): remove database requirement check from shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Apr 14, 2024
1 parent 55c2c2f commit e6b2099
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/indiekit/lib/shortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ export const getShortcuts = (application, response) => {
shortcuts = shortcuts.filter((item) => !item.requiresDatabase);
}

// Translate text strings
for (const item of shortcuts) {
// Translate text strings
item.name = response.locals.__(item.name);
// Remove database requirement check
delete item.requiresDatabase;
}

return shortcuts;
Expand Down

0 comments on commit e6b2099

Please sign in to comment.