Skip to content

Commit 24b8aed

Browse files
chore: suppress ts errors on unmerged endpoints
1 parent 86b8bec commit 24b8aed

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

apps/meteor/client/views/marketplace/AppDetailsPage/tabs/AppLogs/Filters/AppLogsFilter.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export default {
1212
args: {},
1313
decorators: [
1414
mockAppRoot()
15+
// @ts-expect-error The endpoint is to be merged in https://github.com/RocketChat/Rocket.Chat/pull/36245
1516
.withEndpoint('GET', '/apps/logs/instanceIds', () => ({
1617
success: true,
1718
instanceIds: ['instance-1', 'instance-2', 'instance-3'],

apps/meteor/client/views/marketplace/AppDetailsPage/tabs/AppLogs/Filters/AppLogsFilterContextualBar.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export default {
1212
args: {},
1313
decorators: [
1414
mockAppRoot()
15+
// @ts-expect-error The endpoint is to be merged in https://github.com/RocketChat/Rocket.Chat/pull/36245
1516
.withEndpoint('GET', '/apps/logs/instanceIds', () => ({
1617
success: true,
1718
instanceIds: ['instance-1', 'instance-2', 'instance-3'],

apps/meteor/client/views/marketplace/AppDetailsPage/tabs/AppLogs/Filters/InstanceFilterSelect.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ type InstanceFilterSelectProps = Omit<ComponentProps<typeof Select>, 'options'>;
1010

1111
export const InstanceFilterSelect = ({ ...props }: InstanceFilterSelectProps) => {
1212
const { t } = useTranslation();
13+
// @ts-expect-error The endpoint is to be merged in https://github.com/RocketChat/Rocket.Chat/pull/36245
1314
const getOptions = useEndpoint('GET', '/apps/logs/instanceIds');
1415

1516
const { data, isPending } = useQuery({
1617
queryKey: ['app-logs-filter-instances'],
18+
// @ts-expect-error The endpoint is to be merged in https://github.com/RocketChat/Rocket.Chat/pull/36245
1719
queryFn: async () => getOptions(),
1820
});
1921

2022
const options: SelectOption[] = useMemo(() => {
23+
// @ts-expect-error The endpoint is to be merged in https://github.com/RocketChat/Rocket.Chat/pull/36245
2124
const mappedData: [string, string][] = data?.instanceIds?.map((id: string) => [id, id]) || [];
2225
return [['all', t('All')], ...mappedData];
2326
}, [data, t]);

0 commit comments

Comments
 (0)