Skip to content

Commit

Permalink
fixup add image to format expr
Browse files Browse the repository at this point in the history
  • Loading branch information
alexshalamov committed Nov 20, 2019
1 parent e9f4e50 commit 4c96832
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/style-spec/expression/types/formatted.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ export default class Formatted {
serialize(): Array<mixed> {
const serialized = ["format"];
for (const section of this.sections) {
if (section.image) {
serialized.push(["image", section.image.name]);
continue;
}
serialized.push(section.text);
const options = {};
if (section.fontStack) {
Expand Down

0 comments on commit 4c96832

Please sign in to comment.