Unable to load blueprint with null tag
Opened this issue · 0 comments
Deleted user commented
For some reason, it seems some blueprints have a null tag.
Example: Brian's Trains - https://www.factorio.school/view/-LaIPNgh8f16V8EwXXpW
When I try and load this page, it fails to display.
Checking the console, shows the stack trace.
TypeError: Cannot read property 'category' of null
at SingleBlueprint.js:351
Checking the API response for this blueprint shows the following tags - https://www.factorio.school/api/blueprint/-LaIPNgh8f16V8EwXXpW
"tags": [
{
"tag": {
"category": "mods",
"name": "ltn"
}
},
{
"tag": {
"category": "train",
"name": "junction"
}
},
{
"tag": {
"category": "train",
"name": "loading station"
}
},
{
"tag": {
"category": "train",
"name": "stacker"
}
},
{
"tag": {
"category": "train",
"name": "track"
}
},
{
"tag": {
"category": "train",
"name": "unloading station"
}
},
{
"tag": {
"category": "version",
"name": "0,17"
}
},
{
"tag": null
}
]
I believe it is that final null tag that is causing this issue.