Skip to content

Commit

Permalink
Update switch-library.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Pausansol committed Nov 6, 2020
1 parent 65776ab commit c6421be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/switch-library.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,22 @@ export default function(document, library) {
lookup.layer,
library
)
// replace the textStyles
const textStylesMap = replaceSharedStyles(
document.getSharedTextStyles(),
lookup.text,
library
)

// replace the overrides
replaceOverrides(docSymbolInstances, {
symbolsMap,
layerStylesMap,
textStylesMap,
})

// replace the swatches


// reload the inspector to make sure we show the latest changes
document.sketchObject.reloadInspector()
}

0 comments on commit c6421be

Please sign in to comment.