Skip to content

Commit 66b3b7e

Browse files
committed
Lint fix.
1 parent 936bde3 commit 66b3b7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/dash-html-components/scripts/generate-components.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ const customImportsForComponents = {
261261

262262
function createXSSProtection(propName) {
263263
return `
264-
const ${propName} = React.useMemo(() => props.${propName} ? sanitizeUrl(props.${propName}): undefined, [props.${propName}]);
264+
const ${propName} = React.useMemo(() => props.${propName} && sanitizeUrl(props.${propName}), [props.${propName}]);
265265
266266
if (${propName}) {
267267
extraProps.${propName} = ${propName};

0 commit comments

Comments
 (0)