Skip to content

Commit fcc4c7a

Browse files
committed
VaudoiseAssurances#19 Fix: Default value should be set for gid param
1 parent 1261394 commit fcc4c7a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

assets/js/gallery.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,7 @@
131131
params[pair[0]] = pair[1];
132132
}
133133

134-
if(params.gid) {
135-
params.gid = parseInt(params.gid, 10);
136-
}
134+
params.gid = parseInt(params.gid, 10) || 1;
137135

138136
if(!params.hasOwnProperty('pid')) {
139137
return params;

0 commit comments

Comments
 (0)