mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-22 17:12:30 +01:00
Make ESLint happy, fix minor issue with file manager breadcrumb
This commit is contained in:
parent
d8f75fa0b7
commit
bb559422dc
@ -67,7 +67,7 @@ export default () => {
|
||||
const { connected, instance } = ServerContext.useStoreState(state => state.socket);
|
||||
const [ canSendCommands ] = usePermissions([ 'control.console' ]);
|
||||
const serverId = ServerContext.useStoreState(state => state.server.data!.id);
|
||||
const isTransferring = ServerContext.useStoreState(state => state.server.data!.isTransferring)
|
||||
const isTransferring = ServerContext.useStoreState(state => state.server.data!.isTransferring);
|
||||
const [ history, setHistory ] = usePersistedState<string[]>(`${serverId}:command_history`, []);
|
||||
const [ historyIndex, setHistoryIndex ] = useState(-1);
|
||||
|
||||
|
@ -65,7 +65,7 @@ export default () => {
|
||||
<FileActionCheckbox
|
||||
type={'checkbox'}
|
||||
css={tw`mx-4`}
|
||||
checked={selectedFilesLength === (files ? files.length : -1)}
|
||||
checked={selectedFilesLength === (files?.length === 0 ? -1 : files?.length)}
|
||||
onChange={onSelectAllClick}
|
||||
/>
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user