Skip to content

Commit

Permalink
Remove optional chaining and double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludeck committed Mar 19, 2024
1 parent e3df9cf commit db3fc09
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/fng-jq-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
$scope.dataField = function (initialise) {
var retVal;
if ($scope.info.name.indexOf('.') === -1) {
const model = $scope.options?.model || "record";
const model = $scope.options.model || 'record';
const record = $scope.formScope[model];
if (record) {
retVal = record[$scope.info.name];
Expand Down
2 changes: 1 addition & 1 deletion dist/fng-jq-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
$scope.dataField = function (initialise) {
var retVal;
if ($scope.info.name.indexOf('.') === -1) {
const model = $scope.options?.model || "record";
const model = $scope.options.model || 'record';
const record = $scope.formScope[model];
if (record) {
retVal = record[$scope.info.name];
Expand Down
Loading

0 comments on commit db3fc09

Please sign in to comment.