mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-10-04 12:50:44 +08:00
Add model viewer target ext array
This commit is contained in:
1 parent
bdaee91f9c
commit
4d2275635a
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user