Skip to content

Commit 5f41510

Browse files
authored
fix errors in mlx-ui startup (#338)
1 parent 7fee873 commit 5f41510

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

dashboard/origin-mlx/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ RUN cd server && npm install && npm run build
1919

2020
# start app
2121
ENV NODE_ENV=production
22-
CMD ["sh", "-c", "npm run build && mv build/ proc/ && node server/dist/server.js proc/ $PORT"]
22+
CMD ["sh", "-c", "npm run build && node server/dist/server.js build/ $PORT"]

dashboard/origin-mlx/src/components/Detail/DatasetDetail.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { getUserInfo, hasRole } from '../../lib/util';
1414
import RunView from '../RunView'
1515
import RelatedAssetView from '../RelatedAssetView';
1616
import MarkdownViewer from '../MarkdownViewer';
17-
import LoadingMessage from '../LoadingMessage';
1817
import MetadataView from '../MetadataView';
1918

2019
const isAdmin = hasRole(getUserInfo(), 'admin');

dashboard/origin-mlx/src/components/Detail/KFServingDetail.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export default class KFServingDetail extends React.Component<KFServingDetailProp
191191
}
192192
else {
193193
predictorTimestamp = service.metadata.creationTimestamp
194-
predictorStatusIcon = service.status.activeModelState == "Ready"
194+
predictorStatusIcon = service.status.activeModelState === "Ready"
195195
? <CheckCircleIcon className="check-icon"/>
196196
: <ErrorIcon className="error-icon"/>
197197
}
@@ -414,4 +414,4 @@ export default class KFServingDetail extends React.Component<KFServingDetailProp
414414
</>
415415
)
416416
}
417-
}
417+
}

0 commit comments

Comments
 (0)