I assume the landlord hasn't had an Electrical Installation Condition Report carried out. It will soon be a legal requirement every five years minimum.
Information for Landlords & Responsibilities | Electrical Safety First - https://www.electricalsafetyfirst.org.uk/guidance/advice-for-you/landlords/
It is the landlord's responsibility to ensure the flat is safe to rent out including the safety of the electrical installation.
Should be a minimum 150mm between gas pipes and a fuse board I believe, unless there is a panel of insulating material.
Excerpt from BS6891:2015:
8.4.2 Separation of pipework from electrical services
8.4.2.1 Where installation pipework is not separated from electrical equipment
or cables by an insulating enclosure, dividing barrier, trunking or conduit, it shall
be spaced as follows:
a) at least 150 mm away from electricity supply equipment, such as metering
equipment, main service cut-outs or supplier (main) isolation switches, and
distribution boards or consumer units; or
b) at least 25 mm away from electrical switches, sockets and electricity supply
and distribution cables.
8.4.2.2 The installation pipework shall not be positioned in a manner that
prevents the operation of any electrical accessory, i.e. a switch or socket outlet.
NOTE Where these spacing requirements are impracticable the pipework should
either be sheathed with an electrical insulating material rated at 230 V ac or more,
or a panel of electrical insulating material should be interposed.
How bad is the fire? Have the insurance company been around?