Skip to content

Commit d337fbd

Browse files
authored
fix: CTB-64: Fix typeerror when using addRequestContentFormat option. (#94)
1 parent 0e6a077 commit d337fbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/plugin.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ const storeModule = {
222222
config.params._format = config.params._format ?? 'custom_elements'
223223
}
224224
if (options.addRequestContentFormat) {
225-
config.params._content_format = config.params._content_format ?? this.options.addRequestContentFormat
225+
config.params._content_format = config.params._content_format ?? options.addRequestContentFormat
226226
}
227227
const { data, status } = await axios.get(path, config)
228228
// Ensure the response looks valid. Either title or content keys

0 commit comments

Comments
 (0)