File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ export function fromMariaDB(ast, diagramDb = DB.GENERIC) {
119
119
const endFieldId = tables [ endTableId ] . fields . findIndex (
120
120
( f ) => f . name === endField ,
121
121
) ;
122
- if ( endField === - 1 ) return ;
122
+ if ( endFieldId === - 1 ) return ;
123
123
124
124
const startFieldId = table . fields . findIndex (
125
125
( f ) => f . name === startField ,
@@ -223,7 +223,7 @@ export function fromMariaDB(ast, diagramDb = DB.GENERIC) {
223
223
const endFieldId = tables [ endTableId ] . fields . findIndex (
224
224
( f ) => f . name === endField ,
225
225
) ;
226
- if ( endField === - 1 ) return ;
226
+ if ( endFieldId === - 1 ) return ;
227
227
228
228
const startFieldId = tables [ startTableId ] . fields . findIndex (
229
229
( f ) => f . name === startField ,
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ export function fromMSSQL(ast, diagramDb = DB.GENERIC) {
131
131
const endFieldId = tables [ endTableId ] . fields . findIndex (
132
132
( f ) => f . name === endField ,
133
133
) ;
134
- if ( endField === - 1 ) return ;
134
+ if ( endFieldId === - 1 ) return ;
135
135
136
136
const startFieldId = table . fields . findIndex (
137
137
( f ) => f . name === startField ,
@@ -235,7 +235,7 @@ export function fromMSSQL(ast, diagramDb = DB.GENERIC) {
235
235
const endFieldId = tables [ endTableId ] . fields . findIndex (
236
236
( f ) => f . name === endField ,
237
237
) ;
238
- if ( endField === - 1 ) return ;
238
+ if ( endFieldId === - 1 ) return ;
239
239
240
240
const startFieldId = tables [ startTableId ] . fields . findIndex (
241
241
( f ) => f . name === startField ,
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ export function fromMySQL(ast, diagramDb = DB.GENERIC) {
119
119
const endFieldId = tables [ endTableId ] . fields . findIndex (
120
120
( f ) => f . name === endField ,
121
121
) ;
122
- if ( endField === - 1 ) return ;
122
+ if ( endFieldId === - 1 ) return ;
123
123
124
124
const startFieldId = table . fields . findIndex (
125
125
( f ) => f . name === startField ,
@@ -223,7 +223,7 @@ export function fromMySQL(ast, diagramDb = DB.GENERIC) {
223
223
const endFieldId = tables [ endTableId ] . fields . findIndex (
224
224
( f ) => f . name === endField ,
225
225
) ;
226
- if ( endField === - 1 ) return ;
226
+ if ( endFieldId === - 1 ) return ;
227
227
228
228
const startFieldId = tables [ startTableId ] . fields . findIndex (
229
229
( f ) => f . name === startField ,
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ export function fromSQLite(ast, diagramDb = DB.GENERIC) {
136
136
const endFieldId = tables [ endTableId ] . fields . findIndex (
137
137
( f ) => f . name === endField ,
138
138
) ;
139
- if ( endField === - 1 ) return ;
139
+ if ( endFieldId === - 1 ) return ;
140
140
141
141
const startFieldId = table . fields . findIndex (
142
142
( f ) => f . name === startField ,
You can’t perform that action at this time.
0 commit comments