Opened 18 months ago
Closed 16 months ago
#6651 closed defect (fixed)
Structure Tree shouldn't fail for empty history strings
Reported by: | Stan | Owned by: | Freagarach |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 27 |
Component: | UI – Miscellaneous | Keywords: | |
Cc: | s0602004 | Patch: |
Description
Currently if a civilization has no history string, like for instance the ponies in ponies ascendant, the structure tree breaks with the following error
ERROR: JavaScript error: gui/reference/structree/StructreePage.js line 51 Script value conversion check failed: v.isString() v.isNumber() v.isBoolean() (got type undefined)
History being an optional tag in cmpIdentity (https://github.com/0ad/0ad/blob/master/binaries/data/mods/public/simulation/components/Identity.js#L45) it is not required to be there.
Note:
See TracTickets
for help on using tickets.
Fix at https://github.com/0ADMods/ponies-ascendant/commit/f7c1b1c95480ac9f0f5cad7f330a6239665a7cbf