Skip to content

Commit

Permalink
Fix parameter dialog for parametericparttable (#7380)
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat authored May 31, 2024
1 parent dc8d77b commit 80c3174
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/frontend/src/tables/part/ParametricPartTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { ApiFormFieldSet } from '../../components/forms/fields/ApiFormField';
import { ApiEndpoints } from '../../enums/ApiEndpoints';
import { ModelType } from '../../enums/ModelType';
import { UserRoles } from '../../enums/Roles';
import { usePartParameterFields } from '../../forms/PartForms';
import { cancelEvent } from '../../functions/events';
import {
useCreateApiFormModal,
Expand Down Expand Up @@ -116,17 +117,7 @@ export default function ParametricPartTable({
const [selectedTemplate, setSelectedTemplate] = useState<number>(0);
const [selectedParameter, setSelectedParameter] = useState<number>(0);

const partParameterFields: ApiFormFieldSet = useMemo(() => {
return {
part: {
disabled: true
},
template: {
disabled: true
},
data: {}
};
}, []);
const partParameterFields: ApiFormFieldSet = usePartParameterFields();

const addParameter = useCreateApiFormModal({
url: ApiEndpoints.part_parameter_list,
Expand Down

0 comments on commit 80c3174

Please sign in to comment.