We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e3bede commit 9c06820Copy full SHA for 9c06820
resources/js/components/command-palette/CommandPalette.vue
@@ -224,10 +224,10 @@ function getRecentItems() {
224
}
225
226
function addToRecentItems(item) {
227
- item.category = __('Recent');
+ const recentItem = { ...item, category: __('Recent') };
228
229
const filtered = getRecentItems().filter(recentItem => recentItem.text !== item.text);
230
- const updated = [item, ...filtered].slice(0, 5);
+ const updated = [recentItem, ...filtered].slice(0, 5);
231
232
localStorage.setItem('statamic.command-palette.recent', JSON.stringify(updated));
233
0 commit comments