diff --git a/snippets/shx-3d-render-input.liquid b/snippets/shx-3d-render-input.liquid index 6e73f83..12113ec 100644 --- a/snippets/shx-3d-render-input.liquid +++ b/snippets/shx-3d-render-input.liquid @@ -1,5 +1,4 @@ -{% assign content_type = content_type | default: 'body' %} -{% assign section_id = section_id | default: 'null' unless section_id %} +{% assign content_type = content_type | default: 'body' %} {% if content_type == 'body' %} @@ -15,7 +14,7 @@ {% endcomment %} - + {% elsif content_type == 'init' %} @@ -120,6 +119,9 @@ this.container = null; this.uuid = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); + + this.section_id = this.getAttribute('section_id'); + console.log('section_id', this.section_id); } connectedCallback() {