Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 859a45d

Browse filesBrowse files
authored
fix: should not pass undefined to bindingsQuery (vuejs#1735)
closes vuejs#1740
1 parent 4b9b26c commit 859a45d
Copy full SHA for 859a45d

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/index.ts

Copy file name to clipboardExpand all lines: src/index.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export default function loader(
163163
const scopedQuery = hasScoped ? `&scoped=true` : ``
164164
const attrsQuery = attrsToQuery(descriptor.template.attrs)
165165
const bindingsQuery = script
166-
? `&bindings=${JSON.stringify(script.bindings)}`
166+
? `&bindings=${JSON.stringify(script.bindings ?? {})}`
167167
: ``
168168
const query = `?vue&type=template${idQuery}${scopedQuery}${attrsQuery}${bindingsQuery}${resourceQuery}`
169169
templateRequest = stringifyRequest(src + query)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.