mirror of
https://github.com/ianarawjo/ChainForge.git
synced 2025-03-14 08:16:37 +00:00
Fix duplicate handles bug in Prompt Node
This commit is contained in:
parent
6ad88f0ad9
commit
e57cfebfc2
@ -1,15 +1,15 @@
|
||||
{
|
||||
"files": {
|
||||
"main.css": "/static/css/main.98db168d.css",
|
||||
"main.js": "/static/js/main.d9474fda.js",
|
||||
"main.js": "/static/js/main.7371c759.js",
|
||||
"static/js/787.4c72bb55.chunk.js": "/static/js/787.4c72bb55.chunk.js",
|
||||
"index.html": "/index.html",
|
||||
"main.98db168d.css.map": "/static/css/main.98db168d.css.map",
|
||||
"main.d9474fda.js.map": "/static/js/main.d9474fda.js.map",
|
||||
"main.7371c759.js.map": "/static/js/main.7371c759.js.map",
|
||||
"787.4c72bb55.chunk.js.map": "/static/js/787.4c72bb55.chunk.js.map"
|
||||
},
|
||||
"entrypoints": [
|
||||
"static/css/main.98db168d.css",
|
||||
"static/js/main.d9474fda.js"
|
||||
"static/js/main.7371c759.js"
|
||||
]
|
||||
}
|
@ -1 +1 @@
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><script async src="https://www.googletagmanager.com/gtag/js?id=G-RN3FDBLMCR"></script><script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","G-RN3FDBLMCR")</script><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="A visual programming environment for prompt engineering"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>ChainForge</title><script defer="defer" src="/static/js/main.d9474fda.js"></script><link href="/static/css/main.98db168d.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><script async src="https://www.googletagmanager.com/gtag/js?id=G-RN3FDBLMCR"></script><script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","G-RN3FDBLMCR")</script><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="A visual programming environment for prompt engineering"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>ChainForge</title><script defer="defer" src="/static/js/main.7371c759.js"></script><link href="/static/css/main.98db168d.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
3
chainforge/react-server/src/PromptNode.js
vendored
3
chainforge/react-server/src/PromptNode.js
vendored
@ -146,7 +146,8 @@ const PromptNode = ({ data, id }) => {
|
||||
|
||||
const refreshTemplateHooks = (text) => {
|
||||
// Update template var fields + handles
|
||||
const found_template_vars = extractBracketedSubstrings(text); // gets all strs within braces {} that aren't escaped; e.g., ignores \{this\} but captures {this}
|
||||
const found_template_vars = Array.from(
|
||||
new Set(extractBracketedSubstrings(text))); // gets all strs within braces {} that aren't escaped; e.g., ignores \{this\} but captures {this}
|
||||
setTemplateVars(found_template_vars);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user