Skip to content

Commit 4069463

Browse files
Updated conditions to run the SB
1 parent 4dae68b commit 4069463

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

gulpfile.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,9 +371,10 @@ function combineSampleList(platform, seo, done) {
371371
for (var i = 0; i < orderKeys.length; i++) {
372372
console.log('Category : ' + orderKeys[i]);
373373
var components = sampleOrder[orderKeys[i]];
374+
let category = orderKeys[i];
374375
for (var j = 0; j < components.length; j++) {
375376
console.log('Component : ' + components[j]);
376-
var currentData = getSamples(data, components[j]);
377+
var currentData = getSamples(data, components[j], category);
377378
currentData.order = i;
378379
result.push(currentData);
379380
}
@@ -424,11 +425,11 @@ gulp.task('skip-chunks', function (done) {
424425
});
425426

426427

427-
function getSamples(data, component) {
428+
function getSamples(data, component, category) {
428429
var dataList = Object.keys(data);
429430
for (var i = 0; i < dataList.length; i++) {
430431
var currentData = data[dataList[i]];
431-
if (component === currentData.name) {
432+
if (component === currentData.name && category === currentData.category) {
432433
return currentData;
433434
}
434435
}
@@ -541,4 +542,4 @@ gulp.task('serve', function(done) {
541542
};
542543
bs.init(options, done);
543544
});
544-
});
545+
});

0 commit comments

Comments
 (0)