Skip to content

Commit

Permalink
fix(cover): reset source for subsequent nodes
Browse files Browse the repository at this point in the history
The node image source can be revoked if a higher resolution
image is loaded for the node. Then the blob URL will not
be valid and no image will be shown in the cover.
  • Loading branch information
oscarlorentzon committed May 29, 2018
1 parent 5bb9bef commit 81546fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/CoverComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class CoverComponent extends Component<ICoverConfiguration> {
.map(([node, configuration]: [Node, ICoverConfiguration]): Node => { return node; })
.map(
(node: Node): ICoverConfiguration => {
return { key: node.key, src: node.image.src };
return { key: node.key, src: null };
})
.subscribe(this._configurationSubject$);

Expand Down

0 comments on commit 81546fa

Please sign in to comment.