aslagle / reactive-table

A reactive table designed for Meteor
https://atmospherejs.com/aslagle/reactive-table
Other
328 stars 138 forks source link

Table is not updated when data is $unset (context.server) #478

Open aessig opened 6 years ago

aessig commented 6 years ago

When ReactiveTable is used with pub/sub on the server side (only in this case), the table is not updated when a field is unset. I have dug inside the code and it seems like the publication is working correctly but the local Mongo.Collection is not updating accordingly. Any help is welcome

aessig commented 6 years ago

The behaviours is even stranger has if a sub element like "name" in $unset, local database will be updated, but not if it's a first level element like "job"

{ 
   contact: {
        name: "Peter"
   }
   job: "Director"
}