Hello Community,
Cannot figure what am I doing wrong with my patch function because instead of updating existing sharepoint item it is creating new one.
SharePoint list:

OnSelect button:
Patch('Time Records',LookUp('Time Records', 'Active Session'= true , {'End time': Now(), 'Time Spent': DateDiff(varNewItem.'Start time',Now(),Minutes), 'Active Session': false}))
Result:

I know that Defaults() function it is used for creating new item but i am not using it and still the button is creating new item.
All I want is the button to update or 'insert' data in 'End Time' and 'Time Spent' columns and switch 'Active Session' (Yes/No column type) from true(check mark) to false(no check mark).
Any help would be really appreciate since i'm struggling with this issue for quite some time ...
Thank you in advance !