-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: material sources duplicated #613
fix: material sources duplicated #613
Conversation
luhc228
commented
Oct 13, 2020
•
edited
Loading
edited
- Fix: material sources display duplicated
@@ -83,7 +83,7 @@ export async function getSources(specifiedType?: string): Promise<IMaterialSourc | |||
sources = sources.concat(OFFICAL_MATERIAL_SOURCES_FOR_EXTERNAL); | |||
} | |||
const userSources: IMaterialSource[] = getUserSources(); | |||
sources.unshift(...userSources); | |||
sources = [...userSources, ...sources]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建议是改第 66 行代码:[].concat(OFFICAL_MATERIAL_SOURCES);
ba686d2
to
5eaa88f
Compare
Codecov Report
@@ Coverage Diff @@
## hotfix/undefined #613 +/- ##
=================================================
Coverage 57.14% 57.14%
=================================================
Files 1 1
Lines 70 70
Branches 15 15
=================================================
Hits 40 40
Misses 30 30 Continue to review full report at Codecov.
|
* fix: scaffold is empty * fix: welcome page auto show logic * docs: changelog for iceworks app * fix: material sources duplicated (#613) * fix: material sources duplicated * chore: changelog * fix: comment Co-authored-by: Hengchang Lu <44047106+luhc228@users.noreply.github.com>