Skip to content

Commit c2cbfea

Browse files
authored
Bug fix for Template.Parameter
Opsi
1 parent 7cb82de commit c2cbfea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

types/template.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,10 @@ class Parameter {
238238

239239
// Text type can go to hell
240240
if (this.type === "text") {
241-
if (whoami === "header" && object.body > 60) throw new Error("Header text must be 60 characters or less");
242-
if (whoami === "body" && object.body > 1024) throw new Error("Body text must be 1024 characters or less");
243-
this[this.type] = object.body;
244-
} else this[this.type] = object;
241+
if (whoami === "header" && parameter.body > 60) throw new Error("Header text must be 60 characters or less");
242+
if (whoami === "body" && parameter.body > 1024) throw new Error("Body text must be 1024 characters or less");
243+
this[this.type] = parameter.body;
244+
} else this[this.type] = parameter;
245245
}
246246
}
247247

0 commit comments

Comments
 (0)