I would say that there are some obvious drawbacks of how the layout is set up now, both regarding the edit CTA's and also the search field.
Let me start with the search field. The search field is in a top bar of the app, covering both the list container (left) and the item details container (right). This makes it quite confusing for a user to establish whether the search is mapped towards the list or the details area, or both even... I assume that the search is mapped towards the list, in that case it would be better to move it to the top of the list view to clearly map its functionality.
Now to the edit CTA. The mapping here is also quite confusing. The bar covers both the list and the details containers again, and it's also here hard to establish which container it's actually mapped towards. If this bar will only contain an Edit button, I would suggest moving the bar into the details container, clearly mapping what it is that the user can edit. This also solves the issue with having an edit button visible when no item in the list is selected.