Browse Source

remove logs

master
Peter Clement 5 years ago
parent
commit
44b7b6a6f8
  1. 2
      packages/builder/src/builderStore/store/automation/index.js
  2. 1
      packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte
  3. 1
      packages/builder/src/components/automation/AutomationBuilder/FlowChart/ResultsModal.svelte
  4. 1
      packages/builder/src/components/automation/AutomationPanel/AutomationList.svelte

2
packages/builder/src/builderStore/store/automation/index.js

@ -46,12 +46,10 @@ const automationActions = store => ({
}) })
}, },
save: async ({ automation }) => { save: async ({ automation }) => {
console.log(automation)
const UPDATE_AUTOMATION_URL = `/api/automations` const UPDATE_AUTOMATION_URL = `/api/automations`
const response = await api.put(UPDATE_AUTOMATION_URL, automation) const response = await api.put(UPDATE_AUTOMATION_URL, automation)
const json = await response.json() const json = await response.json()
store.update(state => { store.update(state => {
console.log(state)
const existingIdx = state.automations.findIndex( const existingIdx = state.automations.findIndex(
existing => existing._id === automation._id existing => existing._id === automation._id
) )

1
packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte

@ -29,7 +29,6 @@
$: testResult = $automationStore.selectedAutomation.testResults?.steps.filter( $: testResult = $automationStore.selectedAutomation.testResults?.steps.filter(
step => step.stepId === block.stepId step => step.stepId === block.stepId
) )
$: console.log(testResult)
$: instanceId = $database._id $: instanceId = $database._id
$: isTrigger = block.type === "TRIGGER" $: isTrigger = block.type === "TRIGGER"

1
packages/builder/src/components/automation/AutomationBuilder/FlowChart/ResultsModal.svelte

@ -5,7 +5,6 @@
export let isTrigger export let isTrigger
let inputToggled let inputToggled
let outputToggled let outputToggled
$: console.log(isTrigger)
</script> </script>
<ModalContent <ModalContent

1
packages/builder/src/components/automation/AutomationPanel/AutomationList.svelte

@ -6,7 +6,6 @@
import EditAutomationPopover from "./EditAutomationPopover.svelte" import EditAutomationPopover from "./EditAutomationPopover.svelte"
$: selectedAutomationId = $automationStore.selectedAutomation?.automation?._id $: selectedAutomationId = $automationStore.selectedAutomation?.automation?._id
$: console.log($automationStore)
onMount(() => { onMount(() => {
automationStore.actions.fetch() automationStore.actions.fetch()
}) })

Loading…
Cancel
Save