mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor: Extract ISOCountryCodes into a single place (no-changelog) (#9947)
This commit is contained in:
committed by
GitHub
parent
908ddd8a24
commit
ddfb240694
@@ -16,7 +16,7 @@ import { invoiceFields, invoiceOperations } from './InvoiceDescription';
|
||||
|
||||
import type { IClient, IContact } from './ClientInterface';
|
||||
|
||||
import { countryCodes } from './ISOCountryCodes';
|
||||
import { isoCountryCodes } from '@utils/ISOCountryCodes';
|
||||
|
||||
import type { IInvoice, IItem } from './invoiceInterface';
|
||||
|
||||
@@ -210,9 +210,9 @@ export class InvoiceNinja implements INodeType {
|
||||
// select them easily
|
||||
async getCountryCodes(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||
const returnData: INodePropertyOptions[] = [];
|
||||
for (let i = 0; i < countryCodes.length; i++) {
|
||||
const countryName = countryCodes[i].name as string;
|
||||
const countryId = countryCodes[i].numeric as string;
|
||||
for (let i = 0; i < isoCountryCodes.length; i++) {
|
||||
const countryName = isoCountryCodes[i].name;
|
||||
const countryId = isoCountryCodes[i].numeric;
|
||||
returnData.push({
|
||||
name: countryName,
|
||||
value: countryId,
|
||||
|
||||
Reference in New Issue
Block a user