sxoinas12 5 years ago
parent
commit
73158b183e
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Components/ActionEditor.js

+ 1 - 2
Components/ActionEditor.js

@@ -3,12 +3,11 @@ import { View, Text, TextInput, StyleSheet } from 'react-native';
 import InjectionSystem from 'trapilib/dist/lib/systems/InjectionSystem';
 import InjectionSystem from 'trapilib/dist/lib/systems/InjectionSystem';
 import { Picker } from 'react-native';
 import { Picker } from 'react-native';
 
 
-
+const ActionSystem = InjectionSystem.inject('Actions')
 
 
 export default function ActionEditor(props) {
 export default function ActionEditor(props) {
 	let [action, setAction] = useState(props.value || {});
 	let [action, setAction] = useState(props.value || {});
 
 
-	let ActionSystem = InjectionSystem.inject('Actions');
 	let RoutingSystem = InjectionSystem.inject('Routing');
 	let RoutingSystem = InjectionSystem.inject('Routing');
 	let Routes = RoutingSystem.topology.nodes
 	let Routes = RoutingSystem.topology.nodes
 	if (!action.data || typeof action.data !== "object") action.data = {};
 	if (!action.data || typeof action.data !== "object") action.data = {};