Skip to content

Commit

Permalink
Merge pull request #81 from ISISComputingGroup/77
Browse files Browse the repository at this point in the history
fix hidden pv toggle
  • Loading branch information
Tom-Willemsen authored Nov 27, 2024
2 parents e71d75d + 22c24f5 commit a2f2886
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/Block.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ it("renders topbar unchanged", () => {
it("renders nothing if pv is hidden", () => {
const aBlock: IfcBlock = { pvaddress: "SOME:PV", visible: false };
const { container } = render(
<Block pv={aBlock} instName={""} showHiddenBlocks={false} />,
<Block pv={aBlock} instName={"ANINST"} showHiddenBlocks={false} />,
{
container: tableBody,
},
Expand Down
2 changes: 1 addition & 1 deletion app/components/Block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function Block({
string | number | undefined
>();
const [showAdvanced, setShowAdvanced] = useState(false);
if (!pv.visible && !showHiddenBlocks && !instName) {
if (!pv.visible && !showHiddenBlocks) {
return null;
}
if (pv.value != currentValue) {
Expand Down

0 comments on commit a2f2886

Please sign in to comment.