fix: AI suggestion list shows only rearrange presets for MIDI item
Use suggestions (filtered by getContextualSuggestions) instead of promptMgr.presets (all). When MIDI item selected, only Rearrange/Variation + favorites shown. When no MIDI item, non-rearrange presets shown instead.
This commit is contained in:
@@ -16242,7 +16242,7 @@ const App = () => {
|
||||
className: "flex-1 text-right text-[10px] text-amber-400 font-semibold uppercase normal-case truncate ml-2"
|
||||
}, "MIDI: ", selMidiInfo.itemName || selMidiInfo.itemId) : null), /*#__PURE__*/React.createElement("div", {
|
||||
className: "overflow-y-auto no-scrollbar max-h-36 bg-[#0f0f0f] rounded border border-zinc-800"
|
||||
}, (promptMgr ? promptMgr.presets : []).slice(0, 50).map(p => /*#__PURE__*/React.createElement("button", {
|
||||
}, suggestions.slice(0, 50).map(p => /*#__PURE__*/React.createElement("button", {
|
||||
key: p.id,
|
||||
onClick: () => handleApplySuggestion(p),
|
||||
className: "w-full text-left px-2 py-1 text-[11px] hover:bg-zinc-800 border-b border-zinc-900 last:border-0 flex items-center justify-between gap-2"
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user