Re-evaluate pattern if activated
This commit is contained in:
parent
fddf2ff2a7
commit
fcd83cce55
1 changed files with 6 additions and 2 deletions
|
|
@ -133,13 +133,17 @@ function UserPatterns({ context }) {
|
||||||
<div className="overflow-auto h-full bg-background p-2 rounded-md">
|
<div className="overflow-auto h-full bg-background p-2 rounded-md">
|
||||||
{/* {patternFilter === patternFilterName.user && ( */}
|
{/* {patternFilter === patternFilterName.user && ( */}
|
||||||
<PatternButtons
|
<PatternButtons
|
||||||
onClick={(id) =>
|
onClick={(id) => {
|
||||||
updateCodeWindow(
|
updateCodeWindow(
|
||||||
context,
|
context,
|
||||||
{ ...userPatterns[id], collection: userPattern.collection },
|
{ ...userPatterns[id], collection: userPattern.collection },
|
||||||
patternAutoStart,
|
patternAutoStart,
|
||||||
)
|
)
|
||||||
}
|
|
||||||
|
if (context.started && activePattern === id) {
|
||||||
|
context.handleEvaluate()
|
||||||
|
}
|
||||||
|
}}
|
||||||
patterns={userPatterns}
|
patterns={userPatterns}
|
||||||
started={context.started}
|
started={context.started}
|
||||||
activePattern={activePattern}
|
activePattern={activePattern}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue