Skip to content

Commit 77d7ebc

Browse files
committed
Merge branch 'feat/plugin-policy' into feat/ci-pipeline-mandatory-plugins
2 parents cb65b13 + c7eef17 commit 77d7ebc

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

src/Shared/Components/DatePicker/DateTimePicker.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ const DateTimePicker = ({
6969

7070
return (
7171
<div className="date-time-picker">
72-
<label className={`form__label ${required ? 'dc__required-field' : ''}`} htmlFor={id}>
73-
{label}
74-
</label>
72+
{label && (
73+
<label className={`form__label ${required ? 'dc__required-field' : ''}`} htmlFor={id}>
74+
{label}
75+
</label>
76+
)}
7577
<div className="flex left dc__gap-8">
7678
<SingleDatePicker
7779
id={id}

src/Shared/Components/Plugin/service.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,14 @@ export const getPluginStoreData = async ({
6868
appId,
6969
offset = 0,
7070
signal,
71+
size = 20,
7172
}: GetPluginStoreDataServiceParamsType): Promise<GetPluginStoreDataReturnType> => {
7273
try {
7374
const payload: GetPluginListPayloadType = {
7475
searchKey,
7576
offset,
7677
appId,
77-
size: 20,
78+
size,
7879
tag: selectedTags,
7980
}
8081
const { result } = await get<PluginDetailDTO>(getUrlWithSearchParams(ROUTES.PLUGIN_GLOBAL_LIST_V2, payload), {

src/Shared/Components/Plugin/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ export interface GetPluginStoreDataServiceParamsType extends Pick<PluginListFilt
178178
signal: AbortSignal
179179
appId: number
180180
offset?: number
181+
size?: number
181182
}
182183

183184
export interface GetPluginListPayloadType

0 commit comments

Comments
 (0)