Skip to content

Commit

Permalink
GUACAMOLE-926: Merge fix connection CSV imports for fields with "(att…
Browse files Browse the repository at this point in the history
…ribute)" and "(parameter)" suffixes
  • Loading branch information
necouchman authored Mar 5, 2024
2 parents 22fe53f + 3d7d37c commit e54069b
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 e54069b

Please sign in to comment.