Merge pull request #1633 from Shopify/fix-tablerow-drop-cols-last-attr

fix tablerow drop's last attribute with missing cols param
This commit is contained in:
Michael Go
2022-10-05 14:15:03 -03:00
committed by GitHub
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