feat: Drag collection into starred section to star

This commit is contained in:
Tom Moor
2023-12-19 10:27:31 -05:00
parent c1b2d3c4a7
commit 6616276e4b
7 changed files with 165 additions and 150 deletions

View File

@@ -196,9 +196,10 @@ export default class CollectionsStore extends Store<Collection> {
);
}
star = async (collection: Collection) => {
star = async (collection: Collection, index?: string) => {
await this.rootStore.stars.create({
collectionId: collection.id,
index,
});
};