mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Added deep copy of radio and tacan objects
This commit is contained in:
parent
2e77de95cc
commit
7cf77a63be
@ -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);
|
||||
}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user