Skip to content

Cannot read property 'slice' of undefined on firebase update #1661

Description

@Illuday

Hey! :)

I link my polymer to firebase with this :

<link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../../bower_components/firebase-element/firebase-collection.html"> 

<dom-module id="list-activity">
  <template>
    <firebase-collection
      location="https://glaring-inferno-8584.firebaseio.com/activity"
      data="{{activity}}"></firebase-collection>
    <template is="dom-repeat" items="[[activity]]" as="a">
      <h4>[[a.id]]</h4>
      <span>Title: </span><span>[[a.title]]</span>
    </template>
  </template>
</dom-module>

<script>
  Polymer({
    is: "list-activity"    
  });
</script>

Everything works fine at first display. But when I update a entry of firebase it return in Console :

Uncaught TypeError: Cannot read property 'slice' of undefined     ____    polymer.html:1727

And nothing is update in my html template. However, when I add an entry in firebase, it add to my template without any errors.

Activity

  1. kevinpschaaf commented on May 29, 2015

    @kevinpschaaf
    Member

    This sounds like a <firebase-collection> issue, we'll move this issue to that repo.

  2. tjsavage commented on Jun 2, 2015

    @tjsavage
    Contributor

    auto-moving this issue to GoogleWebComponents/firebase-element#27 and closing this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions