Skip to content

Commit

Permalink
[frontend] Fix linting and deepscan
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelHassine committed Feb 27, 2024
1 parent 7fb541e commit 26308ee
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const TextFieldAskAI: FunctionComponent<TextFieldAskAiProps> = ({
variant,
format = 'text',
disabled,
style
style,
}) => {
const { t_i18n } = useFormatter();
const isEnterpriseEdition = useEnterpriseEdition();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ class StixDomainObjectContentComponent extends Component {
}}
format="html"
variant="html"
style={{position: 'absolute', top: 0, right: 10}}
style={{ position: 'absolute', top: 0, right: 10 }}
/>
</div>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const SettingsMessagesLines = ({
loadMore={() => null}
hasMore={() => false}
dataList={datas ?? []}
globalCount={datas.length ?? 1}
globalCount={(datas ?? []).length ?? 1}
nbOfRowsToLoad={50}
LineComponent={SettingsMessagesLine}
DummyLineComponent={SettingsMessagesLineDummy}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ const Login: FunctionComponent<LoginProps> = ({ type, settings }) => {
/>
</div>
)}
{isWhitemarkEnable && loginLogo && loginLogo.length && (
{isWhitemarkEnable && loginLogo && loginLogo.length > 0 && (
<div className={classes.byFiligran} style={{ margin: '5px 0 20px 0' }}>
<img
src={fileUri(theme.palette.mode === 'dark' ? logoFiligranDark : logoFiligranLight)}
Expand Down

0 comments on commit 26308ee

Please sign in to comment.