Skip to content

Commit

Permalink
Updated copyright message.
Browse files Browse the repository at this point in the history
  • Loading branch information
azaslonov committed Jan 3, 2020
1 parent bfbcaa9 commit 8175c60
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License

Copyright (c) 2018 Paperbits.
Copyright (c) 2020 Paperbits.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ Paperbits is a library of reusable tools and components helping you build web ap
## License
Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://paperbits.io/license/mit.

2018 (c) Copyright Paperbits. All Rights Reserved.
2020 (c) Copyright Paperbits. All Rights Reserved.
8 changes: 7 additions & 1 deletion src/workshops/snippets/styleSnippetSelector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,21 @@ export class StyleSnippetSelector {
const defaultKey = `${parts[0]}/${parts[1]}/default`;
const defaultItem = await this.styleSnippetService.getStyleByKey(defaultKey);
const defaultKeys = this.getAllStyleKeys(defaultItem);

stylesKeys.push(... defaultKeys);
}

const subTheme = {};

stylesKeys = stylesKeys.filter((item, index, source) => source.indexOf(item) === index);

for (const stylesKey of stylesKeys) {
const styleValue = await this.styleSnippetService.getStyleByKey(stylesKey);

if (styleValue) {
this.mergeNestedObj(subTheme, stylesKey, styleValue);
} else {
}
else {
console.warn("styleKey not found: ", stylesKey);
}
}
Expand Down

0 comments on commit 8175c60

Please sign in to comment.