Jdlrobson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/195325

Change subject: Support creation of initial collection
......................................................................

Support creation of initial collection

Change-Id: Idf076b52151a4f4f8ab1f309042cc94bb41b3e7c
Dependency: I849f6f3d87eb119443ef4229594473ce47c44ab2
Bug: T91858
---
M resources/ext.gather.watchstar/CollectionsApi.js
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Gather 
refs/changes/25/195325/1

diff --git a/resources/ext.gather.watchstar/CollectionsApi.js 
b/resources/ext.gather.watchstar/CollectionsApi.js
index 866b56c..795a09f 100644
--- a/resources/ext.gather.watchstar/CollectionsApi.js
+++ b/resources/ext.gather.watchstar/CollectionsApi.js
@@ -32,7 +32,8 @@
                        var d = $.Deferred();
 
                        this.getContent().done( function ( resp ) {
-                               d.resolve( JSON.parse( resp ) );
+                               var data = resp ? JSON.parse( resp ) : resp;
+                               d.resolve( data );
                        } ).fail( function () {
                                d.reject();
                        } );

-- 
To view, visit https://gerrit.wikimedia.org/r/195325
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idf076b52151a4f4f8ab1f309042cc94bb41b3e7c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Gather
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to