1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-26 02:52:30 +01:00

Make ESLint happy, fix minor issue with file manager breadcrumb

This commit is contained in:
Matthew Penner 2020-12-19 11:51:26 -07:00
parent d8f75fa0b7
commit bb559422dc
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ export default () => {
const { connected, instance } = ServerContext.useStoreState(state => state.socket); const { connected, instance } = ServerContext.useStoreState(state => state.socket);
const [ canSendCommands ] = usePermissions([ 'control.console' ]); const [ canSendCommands ] = usePermissions([ 'control.console' ]);
const serverId = ServerContext.useStoreState(state => state.server.data!.id); 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 [ history, setHistory ] = usePersistedState<string[]>(`${serverId}:command_history`, []);
const [ historyIndex, setHistoryIndex ] = useState(-1); const [ historyIndex, setHistoryIndex ] = useState(-1);

View File

@ -65,7 +65,7 @@ export default () => {
<FileActionCheckbox <FileActionCheckbox
type={'checkbox'} type={'checkbox'}
css={tw`mx-4`} css={tw`mx-4`}
checked={selectedFilesLength === (files ? files.length : -1)} checked={selectedFilesLength === (files?.length === 0 ? -1 : files?.length)}
onChange={onSelectAllClick} onChange={onSelectAllClick}
/> />
} }