File tree 3 files changed +4
-4
lines changed 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Gradle Project settings
2
2
projectName = imageshop
3
- version = 2.0.2
3
+ version = 2.0.3
4
4
5
5
# XP App values
6
6
appDisplayName = ImageShop
Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ const libs = {
9
9
exports . get = function ( req ) {
10
10
const contentId = req . params . contentId
11
11
const sitesWithIImageAppInstalled = libs . iimage . getSitesWithIImageAppInstalled ( )
12
-
13
- const content = libs . content . get ( { key : req . params . contentId } )
14
12
15
13
if ( ! sitesWithIImageAppInstalled . length ) {
16
14
return {
@@ -26,6 +24,8 @@ exports.get = function (req) {
26
24
}
27
25
}
28
26
27
+ const content = libs . content . get ( { key : req . params . contentId } )
28
+
29
29
const iimageAppConfig = libs . iimage . getSiteConfig ( contentId || sitesWithIImageAppInstalled [ 0 ] . _id )
30
30
31
31
if ( [ 'iimage_host' ] . some ( key => Object . keys ( iimageAppConfig ) . indexOf ( key ) === - 1 ) ) {
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ function getInputsAllowedToUploadImage(contentId) {
74
74
75
75
if ( connection ) {
76
76
const n = connection . draft . get ( contentId )
77
- const parts = n . components ? n . components . filter ( c => c . type === 'part' ) : [ ]
77
+ const parts = n . components ? libs . objects . forceArray ( n . components ) . filter ( c => c . type === 'part' ) : [ ]
78
78
79
79
const processedParts = { }
80
80
You can’t perform that action at this time.
0 commit comments