Added deep copy of radio and tacan objects

This commit is contained in:
Pax1601 2024-08-07 15:48:25 +02:00
parent 2e77de95cc
commit 7cf77a63be

View File

@ -813,8 +813,8 @@ export function UnitControlMenu(props: { open: boolean; onClose: () => void }) {
`}
onClick={() => {
setActiveAdvancedSettings({
radio: selectedUnits[0].getRadio(),
TACAN: selectedUnits[0].getTACAN(),
radio: JSON.parse(JSON.stringify(selectedUnits[0].getRadio())),
TACAN: JSON.parse(JSON.stringify(selectedUnits[0].getTACAN())),
});
setShowAdvancedSettings(true);
}}