Skip to content

Commit 4ef2c89

Browse files
committed
Fix an issue with form fields not being added to the modal
1 parent f43f7df commit 4ef2c89

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/net/discordjug/javabot/systems/staff_commands/forms/model

1 file changed

+1
-1
lines changed

src/main/java/net/discordjug/javabot/systems/staff_commands/forms/model/FormData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public Optional<FormAttachmentInfo> getAttachmentInfo() {
8383
*/
8484
public List<Label> createComponents() {
8585
List<Label> list = new ArrayList<>(fields.size());
86-
for (int i = 0; i < list.size(); i++) {
86+
for (int i = 0; i < fields.size(); i++) {
8787
FormField field = fields.get(i);
8888
list.add(Label.of(fields.get(i).label(), field.createTextInput("text" + i)));
8989
}

0 commit comments

Comments
 (0)