Skip to content

Commit a2f2886

Browse files
Merge pull request #81 from ISISComputingGroup/77
fix hidden pv toggle
2 parents e71d75d + 22c24f5 commit a2f2886

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/components/Block.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ it("renders topbar unchanged", () => {
3131
it("renders nothing if pv is hidden", () => {
3232
const aBlock: IfcBlock = { pvaddress: "SOME:PV", visible: false };
3333
const { container } = render(
34-
<Block pv={aBlock} instName={""} showHiddenBlocks={false} />,
34+
<Block pv={aBlock} instName={"ANINST"} showHiddenBlocks={false} />,
3535
{
3636
container: tableBody,
3737
},

app/components/Block.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function Block({
1818
string | number | undefined
1919
>();
2020
const [showAdvanced, setShowAdvanced] = useState(false);
21-
if (!pv.visible && !showHiddenBlocks && !instName) {
21+
if (!pv.visible && !showHiddenBlocks) {
2222
return null;
2323
}
2424
if (pv.value != currentValue) {

0 commit comments

Comments
 (0)