Rename showModelTypeCell => methodCanBeModeled

This commit is contained in:
Robert
2023-07-12 14:01:01 +01:00
parent 8432f6cdfe
commit 70b2e68ce7

View File

@@ -137,7 +137,7 @@ export const MethodRow = ({
});
}, [externalApiUsage]);
const showModelTypeCell =
const methodCanBeModeled =
!externalApiUsage.supported ||
(modeledMethod && modeledMethod?.type !== "none");
const modelTypeOptions = useMemo(
@@ -204,7 +204,7 @@ export const MethodRow = ({
<Dropdown
value={modeledMethod?.type ?? "none"}
options={modelTypeOptions}
disabled={!showModelTypeCell}
disabled={!methodCanBeModeled}
onChange={handleTypeInput}
/>
</VSCodeDataGridCell>