Skip to content

Commit

Permalink
Fix for admin ares flight logs. (#6322)
Browse files Browse the repository at this point in the history
# About the pull request
As title, this fixes a bug with the ARES Remote Interface crashing when
attempting to view flight records.

# Explain why it's good for the game

Crash bad.


# Changelog
:cl:
fix: Fixed ARES remote interface UI crash relating to flight logs.
/:cl:
  • Loading branch information
realforest2001 committed May 24, 2024
1 parent df59523 commit ca6cc47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tgui/packages/tgui/interfaces/AresAdmin.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,7 @@ const FlightLogs = (props) => {
last_page,
current_menu,
records_flight,
access_level,
admin_login,
} = data;

return (
Expand Down Expand Up @@ -1446,7 +1446,7 @@ const FlightLogs = (props) => {
<Button.Confirm
icon="trash"
tooltip="Delete Record"
disabled={access_level < 4}
disabled={access_text}
onClick={() => act('delete_record', { record: record.ref })}
/>
</Flex.Item>
Expand Down

0 comments on commit ca6cc47

Please sign in to comment.