Skip to content

Commit

Permalink
fix bug in UI w.r.t. meta$structure
Browse files Browse the repository at this point in the history
Signed-off-by: Doug Davis <[email protected]>
  • Loading branch information
duglin committed Jan 14, 2025
1 parent dc37084 commit 54cd004
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion registry/httpStuff.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,8 @@ func (pw *PageWriter) Done() {
structureswitch = "false"
structuretext = "Show structure"
}
if pw.Info.ResourceUID != "" && pw.Info.What == "Entity" {
if pw.Info.ResourceUID != "" && pw.Info.What == "Entity" &&
(len(pw.Info.Parts) != 5 || pw.Info.Parts[4] != "meta") {
structureButton = fmt.Sprintf(`<center>
<button id=structure onclick='structureswitch=!structureswitch ; apply()'>%s</button>
</center>
Expand Down

0 comments on commit 54cd004

Please sign in to comment.