mirror of
https://github.com/directus/directus.git
synced 2026-02-01 20:05:07 -05:00
Don't append index on first collection
This commit is contained in:
@@ -720,8 +720,8 @@ function initLocalStore(collection: string, field: string, type: typeof localTyp
|
||||
state.relations[0].one_field = 'translations';
|
||||
}
|
||||
|
||||
function getAutomaticJunctionCollectionName(left: string, right: string) {
|
||||
let index = 2;
|
||||
function getAutomaticJunctionCollectionName() {
|
||||
let index: number = 0;
|
||||
let name = getName(index);
|
||||
|
||||
while (collectionExists(name)) {
|
||||
|
||||
Reference in New Issue
Block a user