Skip to content

Commit 6d89cc2

Browse files
Pass 'masterName' instead of 'name' to generateID function (#455)
Pass 'masterName' instead of 'name' to generateID function
2 parents dd28cef + 4a8c321 commit 6d89cc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/symbol.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export const makeSymbol = (
165165
const existingSymbol = existingSymbols.find(symbolMaster => symbolMaster.name === masterName);
166166
const symbolID = existingSymbol
167167
? existingSymbol.symbolID
168-
: generateID(`symbolID:${masterName}`, !!name);
168+
: generateID(`symbolID:${masterName}`, !!masterName);
169169

170170
const symbolMaster = flexToSketchJSON(
171171
buildTree(

0 commit comments

Comments
 (0)