mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 21:48:21 +01:00
All SmartFridge Contents are Now Alphabetized (#22477)
* god damn i hate JS * Update tgui.bundle.js * Update tgui.bundle.js
This commit is contained in:
@@ -40,7 +40,10 @@ export const Smartfridge = (props, context) => {
|
||||
<Section title="Contents">
|
||||
{!contents && <Box color="average"> No products loaded. </Box>}
|
||||
{!!contents &&
|
||||
contents.map((item) => {
|
||||
contents
|
||||
.slice()
|
||||
.sort((a, b) => a.display_name.localeCompare(b.display_name))
|
||||
.map((item) => {
|
||||
return (
|
||||
<Flex direction="row" key={item}>
|
||||
<Flex.Item width="45%">{item.display_name}</Flex.Item>
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user