state
This commit is contained in:
parent
1e2c26123b
commit
1bc86c359e
2 changed files with 14 additions and 6 deletions
|
|
@ -46,8 +46,7 @@ export function PatternsTab({ context }) {
|
|||
const isExample = useMemo(() => activePattern && !!tunes[activePattern], [activePattern]);
|
||||
const onPatternClick = (key, data) => {
|
||||
const { code } = data;
|
||||
setActivePattern(key);
|
||||
context.handleUpdate({ code, evaluate: false });
|
||||
context.handleUpdate({ patternID: key, code, evaluate: false });
|
||||
};
|
||||
|
||||
const examplePatterns = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue