Skip to content

Commit

Permalink
FIX: debug the port services
Browse files Browse the repository at this point in the history
  • Loading branch information
mabasian committed Oct 14, 2024
1 parent c025175 commit 0832ad0
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="widget-box w-full h-4/5 flex flex-col gap-1 p-1 justify-start items-center">
<div
v-for="portData in matchingPorts"
:key="portData.id"
:key="portData.uniqueKey"
class="row-port w-full h-1/5 flex justify-start items-center border border-gray-400 rounded-sm pl-1 pr-1"
@mouseenter="updateCursorLocation(portData)"
@mouseleave="clearCursorLocation"
Expand Down Expand Up @@ -50,11 +50,16 @@ const matchingPorts = computed(() => {
const consensusName = consensusService.name.trim().toLowerCase();
const executionName = executionService.name.trim().toLowerCase();
return portStatus.value.filter((port) => {
const filteredPorts = portStatus.value.filter((port) => {
const portId = port.id.trim();
const portName = port.name.trim().toLowerCase();
return (portId === consensusId || portId === executionId) && (portName === consensusName || portName === executionName);
});
return [...filteredPorts].map((port, index) => ({
...port,
uniqueKey: `${port.id}-${index}`,
}));
});
const updateCursorLocation = (portData) => {
Expand Down

0 comments on commit 0832ad0

Please sign in to comment.