File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import appStore from "../store/appStore";
33import { ContribPoint } from "../model/extension" ;
44import fetchApiResult from "../utils/fetchApiResult" ;
55import { updateContributionState } from "./updateContributionState" ;
6+ import { Input } from "../model/callback" ;
67
78export function setComponentVisibility (
89 contribPoint : ContribPoint ,
@@ -48,10 +49,13 @@ function getLayoutInputValues(
4849 const contributionModel = contributionModels [ contribIndex ] ;
4950 const inputs = contributionModel . layout ! . inputs ;
5051 if ( inputs && inputs . length > 0 ) {
51- // TODO: get inputValue from sources specified by input.kind.
52- // For time being we use null as it is JSON-serializable
53- return inputs . map ( ( input ) => {
54- console . warn ( `layout input not supported yet` , input ) ;
52+ return inputs . map ( ( input : Input ) => {
53+ if ( ! input . kind || input . kind === "Component" ) {
54+ console . warn ( `input kind not supported in layout:` , input ) ;
55+ } else {
56+ // TODO: Get value from another kind of input.
57+ console . warn ( `input kind not supported yet:` , input ) ;
58+ }
5559 return null ;
5660 } ) ;
5761 } else {
You can’t perform that action at this time.
0 commit comments