               </p>
             </div>
             <div className="collections-card-list">
-              {for collection in collections
+              {for collection in @state.collections
                  <CollectionCard
                    key={collection.id}
                    collection={collection}

      baseLink += "projects/#{@props.project.slug}/"
    "#{baseLink}collections/#{collection.slug}"

  listCollections: ->
    query = {}
    if @props.params?.collection_owner?
      query.owner = @props.params.collection_owner
    else if @props.params?.profile_name?
      query.owner = @props.params.profile_name
    if @props.project?
      query.project_ids = @props.project.id
    query.favorite = @props.favorite
    Object.assign query, @props.location.query

    apiClient.type('collections').get query

  render: ->
    {location} = @props

React = require 'react'
apiClient = require 'panoptes-client/lib/api-client'
CollectionCard = require '../../partials/collection-card'
Translate = require 'react-translate-component'
{Link} = require 'react-router'
