Skip to content

Commit 10a44c0

Browse files
authored
Merge pull request #103 from zenml-io/QA-Fixes
Qa fixes
2 parents 89cd618 + 0d93541 commit 10a44c0

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

src/redux/reducers/runsReducer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ const newState = (state: State, runs: TRun[], pagination?: any): State => ({
5959
ids: idsInsert(state.ids, runs),
6060
byId: byKeyInsert(state.byId, runs),
6161
paginated: {
62-
page: pagination.page,
63-
size: pagination.size,
64-
totalPages: pagination.total_pages,
65-
totalitem: pagination.total,
62+
page: pagination?.page,
63+
size: pagination?.size,
64+
totalPages: pagination?.total_pages,
65+
totalitem: pagination?.total,
6666
},
6767
});
6868
const newStateForGraph = (state: State, graph: any): State => ({

src/ui/components/forms/index.tsx

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -178,26 +178,28 @@ export const SearchInputField = (
178178
return (
179179
<FlexBox.Column fullWidth style={{ height: '100px' }}>
180180
<FlexBox alignItems="center" fullWidth style={{ position: 'relative' }}>
181-
182-
<LinkBox style={{ position: 'absolute', left: '7px', top: '30px' }} onClick={() => {}}>
181+
<LinkBox
182+
style={{ position: 'absolute', left: '7px', top: '30px' }}
183+
onClick={() => {}}
184+
>
183185
<icons.search color={iconColors.grey} />
184-
</LinkBox>
185-
186-
<InputWithLabel
187-
name={props.name}
188-
label={props.label}
189-
labelColor={props.labelColor}
190-
InputComponent={
191-
<TextInput
192-
{...props}
193-
style={{ paddingLeft: '40px' }}
194-
value={props.value}
195-
onChangeText={props.onChange}
196-
placeholder={props.placeholder}
197-
/>
198-
}
199-
/>
186+
</LinkBox>
200187

188+
<InputWithLabel
189+
name={props.name}
190+
label={props.label}
191+
labelColor={props.labelColor}
192+
InputComponent={
193+
<TextInput
194+
type="search"
195+
{...props}
196+
style={{ paddingLeft: '40px' }}
197+
value={props.value}
198+
onChangeText={props.onChange}
199+
placeholder={props.placeholder}
200+
/>
201+
}
202+
/>
201203
</FlexBox>
202204
</FlexBox.Column>
203205
);

0 commit comments

Comments
 (0)