mirror of
https://github.com/pheralb/svgl.git
synced 2025-12-29 08:01:36 +08:00
Merge pull request #815 from dima69/fix-missing-param
🛠️ Fix pass missing optimize parameter to prevent forced optimization
This commit is contained in:
@@ -162,7 +162,12 @@
|
||||
content = prefixSvgIds(content, getPrefixFromSvgUrl(svgUrlToCopy));
|
||||
}
|
||||
|
||||
const dataComponent = { code: content, typescript: tsx, name: title };
|
||||
const dataComponent = {
|
||||
code: content,
|
||||
typescript: tsx,
|
||||
name: title,
|
||||
optimize,
|
||||
};
|
||||
const { data, error } = await getReactCode(dataComponent);
|
||||
|
||||
if (error || !data) {
|
||||
|
||||
Reference in New Issue
Block a user