Skip to content

Commit

Permalink
Fix models not being observable
Browse files Browse the repository at this point in the history
  • Loading branch information
masylum committed Mar 10, 2017
1 parent 87dd8c2 commit bd08ccf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mobx-rest",
"version": "2.0.2",
"version": "2.0.3",
"description": "REST conventions for mobx.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/Collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import type { Label, CreateOptions, SetOptions, Id } from './types'
export default class Collection<T: Model> {
@observable request: ?Request = null
@observable error: ?ErrorObject = null
models: IObservableArray<T> = observable.shallowArray([])
@observable models: IObservableArray<T> = []

constructor (data: Array<{[key: string]: any}> = []) {
this.set(data)
Expand Down

0 comments on commit bd08ccf

Please sign in to comment.