Skip to content

Commit 951adcd

Browse files
committed
'SelectablePipe' prop 'type' is required
1 parent 913d8ad commit 951adcd

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/components/SelectablePipe.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ SelectablePipe.propTypes = {
4040
input: PipeEndPropTypes.isRequired,
4141
output: PipeEndPropTypes.isRequired,
4242
strokeColor: PropTypes.string,
43-
type: PropTypes.string
43+
type: PropTypes.string.isRequired
4444
}
4545

4646
export default SelectablePipe

src/components/TestInput.js

-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ class TestInput extends Component {
5959
inputPosition={ inputPipePosition }
6060
outputPosition={ outputPipePosition }
6161
strokeColor={ fillColor }
62-
type={ type }
6362
/>
6463
</Group>
6564
)

src/reducers/workspace/workspaceReducerUtils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const newPipe = (workspace) => {
7474
componentName: SELECTABLE_PIPE,
7575
id: nextId(),
7676
input,
77-
type: null,
77+
type: "null",
7878
output,
7979
value: null
8080
}

0 commit comments

Comments
 (0)