Skip to content

Commit

Permalink
keep youtube and examplepatch when cloning to other/new version - cab…
Browse files Browse the repository at this point in the history
  • Loading branch information
steam0r committed Dec 18, 2024
1 parent 0f828a6 commit 76d7016
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions shared/api/utils/shared_ops_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -2792,9 +2792,12 @@ export default class SharedOpsUtil extends SharedUtil
}

if (!Array.isArray(newJson.changelog)) newJson.changelog = [];
if (newJson.hasOwnProperty("exampleProjectId")) delete newJson.exampleProjectId;
if (newJson.hasOwnProperty("youtubeid")) delete newJson.youtubeid;
if (newJson.hasOwnProperty("youtubeids")) delete newJson.youtubeids;
if (this.getOpNameWithoutVersion(newName) !== this.getOpNameWithoutVersion(oldName))
{
if (newJson.hasOwnProperty("exampleProjectId")) delete newJson.exampleProjectId;
if (newJson.hasOwnProperty("youtubeid")) delete newJson.youtubeid;
if (newJson.hasOwnProperty("youtubeids")) delete newJson.youtubeids;
}

if (this.getOpNameWithoutVersion(oldName) !== this.getOpNameWithoutVersion(newName))
{
Expand Down

0 comments on commit 76d7016

Please sign in to comment.