Skip to content

Commit 6d8ae88

Browse files
committed
Corrected class attr ref
1 parent ec23b8e commit 6d8ae88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/components/chatbot/icons.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ window.icons = {
55
create({ key, size = 18, width, height, ...otherAttrs }) { // requires lib/<dom|log>.js
66
if (!key) return log.error('Option \'key\' required by icons.create()')
77
const icon = { data: this[key], attrs: { width: width || size, height: height || size, ...otherAttrs }}
8-
if (icon.data?.classify != false) icon.data.class = key
8+
if (icon.data?.classify != false) icon.attrs.class = key
99
if (icon.data?.svg) { // return <svg>
1010
icon.svg = dom.create.svgElem('svg', { ...icon.data.svg, ...icon.attrs })
1111
;(function create(elems) {

0 commit comments

Comments
 (0)