fix: filter excludes non-rearrange presets in AI suggestion list
Remove || p.is_favorite from filter when MIDI item selected. Only presets with category === 'Rearrange / Variation' appear.
This commit is contained in:
@@ -16181,7 +16181,7 @@ const App = () => {
|
||||
aiPromptMgrRef.current = new window.PromptTemplateManager();
|
||||
}
|
||||
const promptMgr = aiPromptMgrRef.current;
|
||||
const suggestions = promptMgr ? (hasSelItem ? promptMgr.presets.filter(function(p) { return p.category === 'Rearrange / Variation' || p.is_favorite; }) : promptMgr.presets) : [];
|
||||
const suggestions = promptMgr ? (hasSelItem ? promptMgr.presets.filter(function(p) { return p.category === 'Rearrange / Variation'; }) : promptMgr.presets) : [];
|
||||
const handleApplySuggestion = (preset) => {
|
||||
if (hasSelItem) {
|
||||
setAiPrompt(`Rearrange this melody line in ${preset.name} style`);
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user