Skip to content

Commit

Permalink
fix input inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
roppazvan committed Jun 6, 2024
1 parent 40ae320 commit a0ce97e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
AllSchemas,
NodeTypes,
STRING,
} from '@tokens-studio/graph-engine';
import {
Expand Down Expand Up @@ -36,9 +37,10 @@ export const DynamicInputs = observer(({ node }: { node: Node }) => {
type.enum = enumeratedValues.split(',').map((x) => x.trim());
type.default = type.enum[0];
}

const input = node.addInput(inputName, {
type,
visible: true,
visible: node.nodeType() !== NodeTypes.INPUT,
});
input.annotations[deletable] = true;
//We trigger running the node to either propagate the new input or to update the node
Expand Down

0 comments on commit a0ce97e

Please sign in to comment.