You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
object ids can contain / so board lookup needs to account for this, passing the path as []string would be better.
If / is a valid character in layer names, wouldn't it also break this existing code?
// boardPath comes in the form of "x/layers/z/scenarios/a"// or "layers/z/scenarios/a"// or "x/z/a"func (d*Diagram) GetBoard(boardPathstring) *Diagram {
path:=strings.Split(boardPath, string(os.PathSeparator))
iflen(path) ==0||len(boardPath) ==0 {
returnd
}
object ids can contain
/
so board lookup needs to account for this, passing the path as[]string
would be better.If
/
is a valid character in layer names, wouldn't it also break this existing code?If so, it seems like a bug.
Originally posted by @landmaj in #1725 (comment)
The text was updated successfully, but these errors were encountered: