Skip to content

Commit

Permalink
GUACAMOLE-1925: Fix connection CSV imports for fields with "(attribut…
Browse files Browse the repository at this point in the history
…e)" and "(parameter)" suffixes
  • Loading branch information
leonard2901 committed Feb 22, 2024
1 parent 22fe53f commit 6c5ed99
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ angular.module('import').factory('connectionCSVService',
else if (header.endsWith(PARAMETER_SUFFIX)) {

// Push as an explicit parameter getter
const parameterName = header.replace(PARAMETER_SUFFIX);
const parameterName = header.replace(PARAMETER_SUFFIX, '');
transformConfig.parameterOrAttributeGetters.push(
row => ({
type: 'parameters',
Expand All @@ -300,7 +300,7 @@ angular.module('import').factory('connectionCSVService',
else if (header.endsWith(ATTRIBUTE_SUFFIX)) {

// Push as an explicit attribute getter
const attributeName = header.replace(ATTRIBUTE_SUFFIX);
const attributeName = header.replace(ATTRIBUTE_SUFFIX, '');
transformConfig.parameterOrAttributeGetters.push(
row => ({
type: 'attributes',
Expand Down

0 comments on commit 6c5ed99

Please sign in to comment.