I have created a flow in Power Automate that is triggered on push of a button in PowerApps. My flow was working perfectly fine until I changed the "Comments" input to optional. Afterwards, I started receiving the following error message.
Invalid argument type (text). Expecting a record value instead.
I am using the formula below in PowerApps, on the OnSelect attribute of a button. The 'Comments input' is currently a html textbox and the ItemID is the selected record ID from a Gallery in my app (Please note: the item ID from the gallery is for a record created and stored in a different SharePoint List called Salary Approval Requests). The comments are optional and are entered at a later date/time, then the record in the Salary Approval Requests SharePoint list. On push of the button, a new record is created in a SharePoint list called "Approval History", showing the time, date, comments, Parent_ID (ItemID from other SharePoint list) and other information regarding the person who pushed the button.
'ApprovalResponses:Approved'.Run(GalleryAllRequests.Selected.ID,RichTextEditor1.HtmlText);
Here is my flow:

How can I make the comments optional, and my flow still run?