Skip to content

Commit

Permalink
fix: use id on modelsView for deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
DPS0340 committed Nov 15, 2022
1 parent e79a5df commit 0042698
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/interfaces/pages/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Status } from '../../../types';
import { ModelType } from '../../../types/pages';

export interface IModelBase {
id: number;
age: string;
name: string;
version: string;
Expand All @@ -13,9 +14,7 @@ export type IModelView = IModelBase & {
status: JSX.Element;
};

export interface IModelDetail extends IModelBase {
id: number;
}
export interface IModelDetail extends IModelBase {}

export type IModelFindResponse = IModelDetail & {
status: Status;
Expand Down
1 change: 1 addition & 0 deletions src/pages/models/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const Models: React.FC = () => {
() =>
models.map((obj) =>
filterColumns(obj, [
'id',
'age',
'name',
'status',
Expand Down

0 comments on commit 0042698

Please sign in to comment.