sxoinas12 5 anos atrás
pai
commit
4ac3506f38
1 arquivos alterados com 2 adições e 3 exclusões
  1. 2 3
      Components/ActionEditor.js

+ 2 - 3
Components/ActionEditor.js

@@ -11,7 +11,6 @@ export default function ActionEditor(props) {
 	let RoutingSystem = InjectionSystem.inject('Routing');
 	let Routes = RoutingSystem.topology.nodes
 	if (!action.data || typeof action.data !== "object") action.data = {};
-	console.log(ActionSystem)
 	if (!action.type) action.type = ActionSystem.constructor.Actions[0].id
 	return (
 		<View style={styles.container}>
@@ -21,7 +20,7 @@ export default function ActionEditor(props) {
 			<View style={styles.row}>
 			<Text>Action</Text>
 			<Picker
-				selectedValue={action.name}
+				selectedValue={action.id}
 				style={styles.picker}
 				onValueChange={(itemValue, itemIndex) => {
 					action.type = itemValue;
@@ -29,7 +28,7 @@ export default function ActionEditor(props) {
 					setAction(action)
 				}}>
 				{ActionSystem.constructor.Actions.map((itemAction, index) => {
-					return <Picker.Item label={itemAction.name} value={itemAction.id} key={index} />
+					return <Picker.Item label={itemAction.id} value={itemAction.id} key={index} />
 				})}
 			</Picker>
 			</View>