Skip to content

Commit

Permalink
fix creating a WebSocket request must crash although succeed
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny-chung committed Jan 10, 2024
1 parent 3b2d040 commit bd5485e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ fun RequestEditorView(
val hasPayloadEditor = (request.application == ProtocolApplication.WebSocket
|| (request.application == ProtocolApplication.Grpc && currentGrpcMethod?.isClientStreaming == true)
)
var selectedPayloadExampleId by rememberLast(request.id) { mutableStateOf(request.payloadExamples?.firstOrNull()?.id) }
var selectedPayloadExampleId by rememberLast(request.id, request.application) { mutableStateOf(request.payloadExamples?.firstOrNull()?.id) }

val isEnableSendButton = when (connectionStatus.isConnectionActive()) {
true -> true
Expand Down

0 comments on commit bd5485e

Please sign in to comment.