Update ModalTerminal.tsx
This commit is contained in:
parent
2222b79258
commit
16d916fa05
|
|
@ -454,10 +454,8 @@ const ModalTerminal = ({
|
||||||
const findDataShowVersion = () => {
|
const findDataShowVersion = () => {
|
||||||
const showVersion = dataTextfsm?.find(
|
const showVersion = dataTextfsm?.find(
|
||||||
(d) =>
|
(d) =>
|
||||||
d.command?.trim() === "show version" ||
|
d.command?.trim()?.includes("show ver") ||
|
||||||
d.command?.trim() === "sh version" ||
|
d.command?.trim()?.includes("sh ver")
|
||||||
d.command?.trim() === "show ver" ||
|
|
||||||
d.command?.trim() === "sh ver"
|
|
||||||
);
|
);
|
||||||
return showVersion?.textfsm && showVersion?.textfsm?.[0]
|
return showVersion?.textfsm && showVersion?.textfsm?.[0]
|
||||||
? showVersion?.textfsm?.[0]
|
? showVersion?.textfsm?.[0]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue