3D Widgets stopped recieving input

I created two interactable computers with separate blueprints and separate widgets. One is a tablet that spawns in the players hand. It is set “receive hardware input to true”, and show mouse cursor is enabled when looking at it. Input mode is set to game & UI while looking at it.

Both the tablet and the computer blueprints worked super well receiving clicks from the mouse on screen, however today neither receive input from the mouse and the buttons do not highlight when hovered over.

Found the issue in my code that was causing this:

This was ran at beginplay. I deleted it and now the 3D widgets are receiving mouse input.