We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9202a8 commit 49da40bCopy full SHA for 49da40b
packages/svelte/src/internal/server/index.js
@@ -270,7 +270,7 @@ export function add_styles(style_object) {
270
export function merge_styles(style_attribute, style_directive) {
271
/** @type {Record<string, string>} */
272
const style_object = {};
273
- for (const individual_style of style_attribute.split(';')) {
+ for (const individual_style of (style_attribute ?? '').split(';')) {
274
const colon_index = individual_style.indexOf(':');
275
const name = individual_style.slice(0, colon_index).trim();
276
const value = individual_style.slice(colon_index + 1).trim();
0 commit comments