Skip to content

Commit

Permalink
required field text changes as per the feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnuszipstack committed Dec 17, 2024
1 parent 7e7f666 commit cebcb11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function PdfViewer({ fileUrl, highlightData }) {
const { jumpToPage } = pageNavigationPluginInstance;
const parentRef = useRef(null);
function removeZerosAndDeleteIfAllZero(highlightData) {
return highlightData.filter((innerArray) =>
return highlightData?.filter((innerArray) =>
innerArray.some((value) => value !== 0)
); // Keep arrays that contain at least one non-zero value
}
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/components/custom-tools/prompt-card/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function Header({
checked={required === "all"}
onChange={() => handleRequiredChange("all")}
>
Required
Value Required
</Checkbox>
)}
{enforceType === "json" && (
Expand All @@ -120,13 +120,13 @@ function Header({
checked={required === "all"}
onChange={() => handleRequiredChange("all")}
>
All Required
All JSON Values Required
</Checkbox>
<Checkbox
checked={required === "any"}
onChange={() => handleRequiredChange("any")}
>
Any Required
Atleast 1 JSON Value Required
</Checkbox>
</>
)}
Expand Down

0 comments on commit cebcb11

Please sign in to comment.