Skip to content

Commit

Permalink
chore: rebase on dev
Browse files Browse the repository at this point in the history
  • Loading branch information
bcakmakoglu committed Jun 6, 2022
1 parent e2485fe commit 4146235
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions packages/vue-flow/src/container/EdgeRenderer/EdgeRenderer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ import type { CSSProperties } from 'vue'
import EdgeWrapper from '../../components/Edges/Wrapper'
import ConnectionLine from '../../components/ConnectionLine/ConnectionLine.vue'
import { useHandle, useVueFlow } from '../../composables'
import { connectionExists, groupEdgesByZLevel } from '../../utils'
import { connectionExists, groupEdgesByZLevel, warn } from '../../utils'
import type { EdgeComponent, GraphEdge } from '../../types'
import { Slots } from '../../context'
import MarkerDefinitions from './MarkerDefinitions.vue'
const slots = inject(Slots)
warn('fooba')
const {
emits,
connectionMode,
Expand Down Expand Up @@ -86,7 +88,7 @@ const getType = (type?: string, template?: GraphEdge['template']) => {
const slot = slots?.[`edge-${name}`]
if (!slot?.({})) {
console.warn(`[vueflow]: Edge type "${type}" not found and no edge-slot detected. Using fallback type "default".`)
warn(`Edge type "${type}" not found and no edge-slot detected. Using fallback type "default".`)
return false
}
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-flow/src/utils/log.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const warn = (message: string, ...args: any[]) => {
if (import.meta.env.DEV || process.env.NODE_ENV !== 'production') {
if (process.env.NODE_ENV !== 'production') {
console.warn(`[Vue Flow]: ${message}`, ...args)
}
}

0 comments on commit 4146235

Please sign in to comment.