fix url to decodeURIComponent

This commit is contained in:
monoid 2022-06-21 14:42:04 +09:00
parent a25df086f3
commit 96e71cc175

View File

@ -44,10 +44,10 @@ export const GalleryInfo = (props: GalleryProp) => {
}}>
{props.option !== undefined && props.diff !== "" && <Box>
<Typography variant="h6">search for</Typography>
{props.option.word !== undefined && <Chip label={"search : " + props.option.word}></Chip>}
{props.option.word !== undefined && <Chip label={"search : " + decodeURIComponent(props.option.word)}></Chip>}
{props.option.content_type !== undefined && <Chip label={"type : " + props.option.content_type}></Chip>}
{props.option.allow_tag !== undefined && props.option.allow_tag.map(x => (
<TagChip key={x} tagname={decodeURI(x)} label={decodeURI(x)}></TagChip>))}
<TagChip key={x} tagname={decodeURIComponent(x)} label={decodeURIComponent(x)}></TagChip>))}
</Box>}
{
state.documents.map(x => {