Updated libcamera-apps v1.2.1 creates error with tuning file with IR Cut HQcamera

I just updated through the Pi desktop notification, but now if I try and load the tuning file for the IR Cut HQ camera imx477. eg the Arducam-477.json I get this error:

[1:15:47.472430490] [9096] FATAL default controller.cpp:179 assertion “cfg != HardwareConfigMap.end()” failed in getHardwareConfig()
and the camera fails to start.
It seems to be fine without the tuning file. But it does make the the IR image more balanced. Is there any way to fix this? Thanks

Ok I have fixed it by rebuilding libcamera