fix tablerow drop's last attribute with missing cols param

This commit is contained in:
Michael Go
2022-10-05 11:15:23 -03:00
parent c8f3cfa8fc
commit fbab19ac8c
2 changed files with 53 additions and 1 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ module Liquid
collection = Utils.slice_collection(collection, from, to)
length = collection.length
cols = context.evaluate(@attributes['cols']).to_i
cols = @attributes['cols'].nil? ? length : context.evaluate(@attributes['cols']).to_i
output << "<tr class=\"row1\">\n"
context.stack do