Add model viewer target ext array

This commit is contained in:
hrntsm committed 2023-08-12 13:54:34 +09:00
1 parent bdaee91f9c
commit 4d2275635a
1 file changed
+2 -2
+2 -2
View File
@@ -336,6 +336,7 @@ const TrialArtifact: FC<{ trial: Trial }> = ({ trial }) => {
const width = "200px"
const height = "150px"
const modelViewerTargetExt = ["stl", "3dm"]
const inputRef = useRef<HTMLInputElement>(null)
const handleClick: MouseEventHandler = () => {
@@ -445,8 +446,7 @@ const TrialArtifact: FC<{ trial: Trial }> = ({ trial }) => {
</Card>
)
} else if (
a.filename.endsWith(".stl") ||
a.filename.endsWith(".3dm")
modelViewerTargetExt.includes(a.filename.split(".").pop() || "")
) {
return (
<Card