Skip to content

Commit 5ed9b37

Browse files
Fixes for pack handling
1 parent 6dca114 commit 5ed9b37

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

release/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dub-editor-electron",
3-
"version": "1.4.0-beta",
3+
"version": "1.5.0-beta",
44
"description": "A dub editor for What the Dub and Rifftrax games by Wide Right Studios",
55
"license": "MIT",
66
"author": {

src/main/main.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -970,16 +970,17 @@ ipcMain.handle(
970970
'removeFromCollection',
971971
(event, { collectionId, videoId, game }) => {
972972
console.log(
973-
`REMOVING ${videoId} for game ${game} to collection ${collectionId}`
973+
`REMOVING ${videoId} for game ${game} from collection ${collectionId}`
974974
);
975975

976976
// If the collection isn't present, return immediately.
977977
if (!(collectionId in collections[game])) {
978+
console.log("COLLECTION NOT PRESENT");
978979
return;
979980
}
980981

981982
// Filter out videoId that's being removed.
982-
collections[game][collectionId].filter(
983+
collections[game][collectionId] = collections[game][collectionId].filter(
983984
(element: string) => element !== videoId
984985
);
985986

src/renderer/routes/CollectionManager.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ export default () => {
229229
type="button"
230230
onClick={() => {
231231
removeFromCollection(
232+
collectionId,
232233
videoId
233234
);
234235
}}

0 commit comments

Comments
 (0)