summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-08-31 23:07:20 +0200
committerJules Laplace <julescarbon@gmail.com>2020-08-31 23:07:20 +0200
commit22721a013bdd10d5eb395ba18453585f5f3f1f7f (patch)
tree5a920e31d6026ed5dc55265e5fd057febccc50e3 /StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js
parentd22d51a1ae49680015326857360eb699f31efced (diff)
rebuild the ios platform and the plugins
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js')
-rwxr-xr-xStoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js b/StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js
index 9190634c..d37846c2 100755
--- a/StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js
+++ b/StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js
@@ -61,9 +61,11 @@ var BlogView = View.extend({
}
else {
app.departments = app.store.Departments
- app.department_id = app.store.Departments[0].uri
+ if (app.store.Departments.length) {
+ app.department_id = app.store.Departments[0].uri
+ app.collection.setCollectionName( app.store.Departments[0].text )
+ }
$("#collections h1").toggleClass("single-dept", app.store.Departments.length == 1)
- app.collection.setCollectionName( app.store.Departments[0].text )
//// demo department for shoes with weird SizeTypeId
// app.department_id = "NKDrtSC"
if (sdk.env === 'test') {