Skip to content

Commit

Permalink
Bugfix / fix missing original language fetch (#186)
Browse files Browse the repository at this point in the history
* bump version

* fix for undefined version

* fix for undefined version

---------

Co-authored-by: blm <[email protected]>
  • Loading branch information
PhotoNomad0 and blm authored Sep 15, 2024
1 parent 83c93ab commit 4b4aa89
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tc-source-content-updater",
"version": "1.4.28",
"version": "1.4.29",
"description": "Module that updates source content for the desktop application translationCore.",
"main": "lib/index.js",
"display": "library",
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/resourcesHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export function getVersionAndOwnerFromPath(versionPath) {
export function splitVersionAndOwner(versionAndOwner) {
let version = versionAndOwner;
let owner = '';
const pos = versionAndOwner.indexOf(OWNER_SEPARATOR);
const pos = versionAndOwner && versionAndOwner.indexOf(OWNER_SEPARATOR);
if (pos >= 0) {
owner = decodeURIComponent(versionAndOwner.substr(pos + 1));
version = versionAndOwner.substr(0, pos);
Expand Down

0 comments on commit 4b4aa89

Please sign in to comment.