From 80bcbcd13728c7b1dbd590ac62a570b391771146 Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Thu, 27 Apr 2023 11:44:41 -0400 Subject: [PATCH] Silence warning. --- main.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.qml b/main.qml index d634204d..57387b1e 100644 --- a/main.qml +++ b/main.qml @@ -687,7 +687,7 @@ Window { x: globalPoint.x y: globalPoint.y property string text: currentResponse ? LLM.response : (value ? value : "") - response: newResponse === "" ? text : newResponse + response: newResponse === undefined || newResponse === "" ? text : newResponse onAccepted: { var responseHasChanged = response !== text && response !== newResponse if (thumbsDownState && !thumbsUpState && !responseHasChanged)