fix: issue where workspace label selection wasn't working.

This commit is contained in:
Andrey Melnikov
2020-11-16 15:19:06 -08:00
parent d3af2059d4
commit 0f0616ec6d

View File

@@ -113,7 +113,7 @@ func (c *Client) ListAvailableLabels(query *SelectLabelsQuery) (result []*Label,
// Don't select labels from Terminated workspaces.
if query.Table == "workspaces" {
selectLabelsBuilder = selectLabelsBuilder.Where(sq.NotEq{
"workspaces.phase": "Terminated",
"l.phase": "Terminated",
})
}