Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions code/src/ui/src/components/SystemCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ export const SystemCard: React.FC<Props> = ({
console.log('Design system already exists');
} else {
if (themeBuilder) {
//const ds = await themeBuilder.getDesignSystem(name);
//const nds = await ds.copy(dest);
const ds = await themeBuilder.getDesignSystem(name);
const nds = await ds.copy(dest);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you drop assigning the result to nds since it looks like copy just blindly returns the new design system. Or maybe better, add something like:

if (!nds) {
    console.log("failed to copy design system: ", name);
}

in case the copy logic ever changes. Just trying to avoid re-introducing the lint warning since I believe that was the whole point in the original change.

}
setTimeout(function () {
refresh();
Expand Down