Skip to content

Commit

Permalink
fix: fix problem with editing walk profile
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekzyla committed Jul 20, 2023
1 parent 7391e08 commit 9696db6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/SC4SNMP_UI_backend/common/conversions.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def _backend2ui_map(self, document: dict, **kwargs):
result = {
"_id": str(document["_id"]),
"profileName": profile_name,
"frequency": document[profile_name].get("frequency", None),
"frequency": document[profile_name].get("frequency", 1),
"conditions": conditions,
"varBinds": var_binds,
"profileInInventory": profile_in_inventory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function ProfilesList() {
expanded={row._id === expandedRowId}
>
<Table.Cell>{row.profileName}</Table.Cell>
<Table.Cell>{(row.frequency ? row.frequency : <P>N/A</P>)}</Table.Cell>
<Table.Cell>{(row.conditions.condition !=="walk" ? row.frequency : <P>N/A</P>)}</Table.Cell>
<Table.Cell>{row.conditions.condition}</Table.Cell>
<Table.Cell>{(row.varBinds.length === 1) ? `1 MIB family` :
`${row.varBinds.length} MIB families`}</Table.Cell>
Expand Down

0 comments on commit 9696db6

Please sign in to comment.