checkout formats may be undefined, avoid error in that scenario
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 25 Feb 2015 22:28:25 +0000 (14:28 -0800)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 25 Feb 2015 22:28:25 +0000 (14:28 -0800)
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
src/od_data.coffee

index dd7673d..11a6b1f 100644 (file)
@@ -173,6 +173,7 @@ define [
                proxy_urls: ->
                        for x in @checkouts
                                @proxies x.actions
+                               x.formats = [] if x.formats is undefined
                                @proxies y.linkTemplates for y in x.formats
                        return @