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) {
119119 const endFieldId = tables [ endTableId ] . fields . findIndex (
120120 ( f ) => f . name === endField ,
121121 ) ;
122- if ( endField === - 1 ) return ;
122+ if ( endFieldId === - 1 ) return ;
123123
124124 const startFieldId = table . fields . findIndex (
125125 ( f ) => f . name === startField ,
@@ -223,7 +223,7 @@ export function fromMariaDB(ast, diagramDb = DB.GENERIC) {
223223 const endFieldId = tables [ endTableId ] . fields . findIndex (
224224 ( f ) => f . name === endField ,
225225 ) ;
226- if ( endField === - 1 ) return ;
226+ if ( endFieldId === - 1 ) return ;
227227
228228 const startFieldId = tables [ startTableId ] . fields . findIndex (
229229 ( 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) {
131131 const endFieldId = tables [ endTableId ] . fields . findIndex (
132132 ( f ) => f . name === endField ,
133133 ) ;
134- if ( endField === - 1 ) return ;
134+ if ( endFieldId === - 1 ) return ;
135135
136136 const startFieldId = table . fields . findIndex (
137137 ( f ) => f . name === startField ,
@@ -235,7 +235,7 @@ export function fromMSSQL(ast, diagramDb = DB.GENERIC) {
235235 const endFieldId = tables [ endTableId ] . fields . findIndex (
236236 ( f ) => f . name === endField ,
237237 ) ;
238- if ( endField === - 1 ) return ;
238+ if ( endFieldId === - 1 ) return ;
239239
240240 const startFieldId = tables [ startTableId ] . fields . findIndex (
241241 ( 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) {
119119 const endFieldId = tables [ endTableId ] . fields . findIndex (
120120 ( f ) => f . name === endField ,
121121 ) ;
122- if ( endField === - 1 ) return ;
122+ if ( endFieldId === - 1 ) return ;
123123
124124 const startFieldId = table . fields . findIndex (
125125 ( f ) => f . name === startField ,
@@ -223,7 +223,7 @@ export function fromMySQL(ast, diagramDb = DB.GENERIC) {
223223 const endFieldId = tables [ endTableId ] . fields . findIndex (
224224 ( f ) => f . name === endField ,
225225 ) ;
226- if ( endField === - 1 ) return ;
226+ if ( endFieldId === - 1 ) return ;
227227
228228 const startFieldId = tables [ startTableId ] . fields . findIndex (
229229 ( 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) {
136136 const endFieldId = tables [ endTableId ] . fields . findIndex (
137137 ( f ) => f . name === endField ,
138138 ) ;
139- if ( endField === - 1 ) return ;
139+ if ( endFieldId === - 1 ) return ;
140140
141141 const startFieldId = table . fields . findIndex (
142142 ( f ) => f . name === startField ,
You can’t perform that action at this time.
0 commit comments