mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor: Extract ISOCountryCodes into a single place (no-changelog) (#9947)
This commit is contained in:
committed by
GitHub
parent
908ddd8a24
commit
ddfb240694
@@ -10,7 +10,7 @@ import type {
|
||||
} from 'n8n-workflow';
|
||||
import { NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import { countriesCodes } from './CountriesCodes';
|
||||
import { isoCountryCodes } from '@utils/ISOCountryCodes';
|
||||
|
||||
import { conversationFields, conversationOperations } from './ConversationDescription';
|
||||
|
||||
@@ -91,7 +91,7 @@ export class HelpScout implements INodeType {
|
||||
// select them easily
|
||||
async getCountriesCodes(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||
const returnData: INodePropertyOptions[] = [];
|
||||
for (const countryCode of countriesCodes) {
|
||||
for (const countryCode of isoCountryCodes) {
|
||||
const countryCodeName = `${countryCode.name} - ${countryCode.alpha2}`;
|
||||
const countryCodeId = countryCode.alpha2;
|
||||
returnData.push({
|
||||
|
||||
Reference in New Issue
Block a user