mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-05-26 13:41:32 +00:00
fix(front): encode uri to string option
This commit is contained in:
@@ -132,13 +132,17 @@ export default function Home() {
|
|||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
if (data.type === "string") {
|
if (data.type === "string") {
|
||||||
const filteredValue = filterLetters(
|
const filteredValue = encodeURIComponent(
|
||||||
data.data,
|
filterLetters(
|
||||||
(
|
data.data,
|
||||||
parameterInfo.find(
|
(
|
||||||
(p) => p.type === "string" && p.parameter === data.name,
|
parameterInfo.find(
|
||||||
) as any
|
(p) =>
|
||||||
).options.omit,
|
p.type === "string" &&
|
||||||
|
p.parameter === data.name,
|
||||||
|
) as any
|
||||||
|
).options.omit,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
setOption((prev) => {
|
setOption((prev) => {
|
||||||
@@ -365,13 +369,13 @@ export default function Home() {
|
|||||||
event: e,
|
event: e,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
value={
|
value={decodeURIComponent(
|
||||||
option?.find(
|
option?.find(
|
||||||
(o) =>
|
(o) =>
|
||||||
o.name ===
|
o.name ===
|
||||||
item.parameter,
|
item.parameter,
|
||||||
)?.value || ""
|
)?.value || "",
|
||||||
}
|
)}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{item.type ===
|
{item.type ===
|
||||||
|
|||||||
Reference in New Issue
Block a user