Skip to content

Custom icon fails when calling multiple custom icons from the json url #408

@lucassimines

Description

@lucassimines

My custom icon collection doesn't return more than 1 icon, If I call just gmail or dot-circle, it works, but it doesn't work for multiple icons, from the URL (http://localhost:3000/api/_nuxt_icon/custom.json?icons=dot-circle,gmail) I get the following JSON.

{
   "prefix":"custom",
   "icons":{
      "dot-circle":{
         "width":32,
         "height":33,
         "body":"<g fill=\"none\"><path opacity=\"0.2\" d=\"M16 28.8047C22.6274 28.8047 28 23.4321 28 16.8047C28 10.1773 22.6274 4.80469 16 4.80469C9.37258 4.80469 4 10.1773 4 16.8047C4 23.4321 9.37258 28.8047 16 28.8047Z\" fill=\"#D324FC\"/>\n<path d=\"M16 28.8047C22.6274 28.8047 28 23.4321 28 16.8047C28 10.1773 22.6274 4.80469 16 4.80469C9.37258 4.80469 4 10.1773 4 16.8047C4 23.4321 9.37258 28.8047 16 28.8047Z\" stroke=\"#D324FC\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n<circle cx=\"16\" cy=\"17\" r=\"3\" fill=\"#D324FC\"/></g>"
      }
   }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions