Skip to content

Commit e693446

Browse files
committed
In image traces, delete source attribute when it is invalid
1 parent aaf7cbc commit e693446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/image/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = function supplyDefaults(traceIn, traceOut) {
1818
return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);
1919
}
2020
coerce('source');
21-
if(traceOut.source && !traceOut.source.match(dataUri)) traceOut.source = null;
21+
if(traceOut.source && !traceOut.source.match(dataUri)) delete traceOut.source;
2222
traceOut._isFromSource = !!traceOut.source;
2323

2424
var z = coerce('z');

0 commit comments

Comments
 (0)