git ssb

7+

dinoworm 🐛 / patchcore



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 AM
Parent: a3b73a9d84561cf83c39c5ed661afb0241c47bfc

Files changed

about/obs.jschanged
about/obs.jsView
@@ -35,9 +35,9 @@
3535 name: (id) => value(id, 'name', id.slice(1, 10)),
3636 description: (id) => value(id, 'description'),
3737 image: (id) => value(id, 'image'),
3838 names: (id) => values(id, 'name'),
39- images: (id) => values(id, 'images'),
39 + images: (id) => values(id, 'image'),
4040 color: (id) => computed(id, (id) => colorHash.hex(id)),
4141 imageUrl: (id) => computed(value(id, 'image'), (blobId) => {
4242 return blobId ? api.blob.sync.url(blobId) : fallbackImageUrl
4343 }),
@@ -55,9 +55,9 @@
5555 }
5656
5757 function values (id, key) {
5858 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)
6060 }
6161
6262 function get (id) {
6363 if (!ref.isLink(id)) throw new Error('About requires an ssb ref!')

Built with git-ssb-web