Skip to content

Commit 777e463

Browse files
committed
Fix table not refreshing when status changes
1 parent 8e2fd05 commit 777e463

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/kotlin/com/coder/gateway/models/WorkspaceAgentModel.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package com.coder.gateway.models
33
import com.coder.gateway.sdk.Arch
44
import com.coder.gateway.sdk.OS
55
import com.coder.gateway.sdk.v2.models.WorkspaceTransition
6-
import java.util.UUID
6+
import java.util.*
77
import javax.swing.Icon
88

99
data class WorkspaceAgentModel(
@@ -32,6 +32,7 @@ data class WorkspaceAgentModel(
3232
if (name != other.name) return false
3333
if (templateID != other.templateID) return false
3434
if (templateName != other.templateName) return false
35+
if (agentStatus != other.agentStatus) return false
3536

3637
return true
3738
}
@@ -42,6 +43,7 @@ data class WorkspaceAgentModel(
4243
result = 31 * result + name.hashCode()
4344
result = 31 * result + templateID.hashCode()
4445
result = 31 * result + templateName.hashCode()
46+
result = 31 * result + agentStatus.hashCode()
4547
return result
4648
}
4749
}

0 commit comments

Comments
 (0)