Commit e7dda9470a027ac6e1e028d4732e10f03aee5d68
whoops, fix issue with about refactor (that was in the last commit by mistake)
Matt McKegg committed on 6/16/2017, 4:04:19 AMParent: a3b73a9d84561cf83c39c5ed661afb0241c47bfc
Files changed
about/obs.js | changed |
about/obs.js | |||
---|---|---|---|
@@ -35,9 +35,9 @@ | |||
35 | 35 … | name: (id) => value(id, 'name', id.slice(1, 10)), | |
36 | 36 … | description: (id) => value(id, 'description'), | |
37 | 37 … | image: (id) => value(id, 'image'), | |
38 | 38 … | names: (id) => values(id, 'name'), | |
39 | - images: (id) => values(id, 'images'), | ||
39 … | + images: (id) => values(id, 'image'), | ||
40 | 40 … | color: (id) => computed(id, (id) => colorHash.hex(id)), | |
41 | 41 … | imageUrl: (id) => computed(value(id, 'image'), (blobId) => { | |
42 | 42 … | return blobId ? api.blob.sync.url(blobId) : fallbackImageUrl | |
43 | 43 … | }), | |
@@ -55,9 +55,9 @@ | |||
55 | 55 … | } | |
56 | 56 … | ||
57 | 57 … | function values (id, key) { | |
58 | 58 … | if (!ref.isLink(id)) throw new Error('About requires an ssb ref!') | |
59 | - return computed([get(id), 'name'], allValues) | ||
59 … | + return computed([get(id), key], allValues) | ||
60 | 60 … | } | |
61 | 61 … | ||
62 | 62 … | function get (id) { | |
63 | 63 … | if (!ref.isLink(id)) throw new Error('About requires an ssb ref!') |
Built with git-ssb-web