Skip to content

Commit

Permalink
Add a blank input to newly created groups
Browse files Browse the repository at this point in the history
  • Loading branch information
gingershaped committed Oct 30, 2024
1 parent dc80e50 commit bf4be1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/latest/scripts/interpreter/inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export type InputsReducerAction = {
export function inputsReducer(draft: Inputs, action: InputsReducerAction) {
switch (action.type) {
case "add-group": {
draft.push({ name: `Group ${draft.length + 1}`, inputs: [] });
draft.push({ name: `Group ${draft.length + 1}`, inputs: [{ id: crypto.randomUUID(), input: "" }] });
break;
}
case "duplicate-group": {
Expand Down

0 comments on commit bf4be1d

Please sign in to comment.