If the pain is only coming on chewing, the height of the filling may require to be reduced. Also, did the dentist tap on the tooth? Did you have pain while tapping? Another factor contributing to the pain could be the wisdom tooth that's erupting behind, it could be applying pressure on your front tooth and causing pain.
Next Steps
Check for spontaneous pain in the morning, check if you're having pain on pressing the gum behind your 2nd molar. Retake the x-ray with the entire roots of the 2nd molar being visible. Ask your dentist to reduce the height of the filling.