Merge branch 'form_io' of github.com:logspace-ai/langflow into form_io

This commit is contained in:
Lucas Oliveira 2023-07-10 16:44:52 -03:00
commit ba61b0e9e0
2 changed files with 2 additions and 2 deletions

View file

@ -225,7 +225,7 @@ class PromptVertex(Vertex):
# so the prompt format doesn't break # so the prompt format doesn't break
artifacts.pop("handle_keys", None) artifacts.pop("handle_keys", None)
try: try:
return self._built_object.format(**self.artifacts) return self._built_object.format(**artifacts)
except KeyError: except KeyError:
return super()._built_object_repr() return super()._built_object_repr()
else: else:

View file

@ -598,7 +598,7 @@ export function isValidConnection(
) || ) ||
targetHandle.split("|")[0] === "str" targetHandle.split("|")[0] === "str"
) { ) {
let targetNode = reactFlowInstance.getNode(target).data.node; let targetNode = reactFlowInstance?.getNode(target)?.data?.node;
if (!targetNode) { if (!targetNode) {
if ( if (
!reactFlowInstance !reactFlowInstance