Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Nov 7, 2024
1 parent f507185 commit 9a74c92
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ export const CreateGuesserView = (
`The resource ${resource} is not defined in the API schema`
);
}
if (!resourceDefinition || !resourceDefinition.properties) {
return;
}
const inferredInputs = Object.keys(resourceDefinition.properties)
.filter((source: string) => source !== 'id')
.filter(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ export const EditGuesserView = (
`The resource ${resource} is not defined in the API schema`
);
}
if (!resourceDefinition || !resourceDefinition.properties) {
return;
}
const inferredInputs = Object.keys(resourceDefinition.properties)
.filter((source: string) => source !== 'id')
.filter(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ export const ListGuesserView = (
`The resource ${resource} is not defined in the API schema`
);
}
if (!resourceDefinition || !resourceDefinition.properties) {
return;
}
const inferredFields = Object.keys(resourceDefinition.properties)
.filter(
source =>
Expand Down Expand Up @@ -139,7 +136,7 @@ export const ListGuesserView = (
resourceDefinition.properties![source].format === 'tsvector'
);
const field = resourceDefinition.properties![fullTextSearchSource!];
inferredInputsForFilters.push(
inferredInputsForFilters.unshift(
inferElementFromType({
name: `${fullTextSearchSource!}@fts`,
types: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ export const ShowGuesserView = (
`The resource ${resource} is not defined in the API schema`
);
}
if (!resourceDefinition || !resourceDefinition.properties) {
return;
}
const inferredFields = Object.keys(resourceDefinition.properties)
.filter(
source =>
Expand Down

0 comments on commit 9a74c92

Please sign in to comment.