Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGB committed Dec 7, 2023
2 parents 59520b7 + 393a571 commit d01d5ec
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "zettelflow",
"name": "ZettelFlow",
"version": "1.3.1",
"version": "1.3.2",
"minAppVersion": "1.4.11",
"description": "Helps you to create and manage your notes in a Zettelkasten way via Canvas.",
"author": "RafaelGB",
Expand Down
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": "zettelflow",
"version": "1.3.1",
"version": "1.3.2",
"description": "A plugin for Obsidian that allows you to create and manage notes in a ZettelFlow-like way.",
"main": "main.js",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export function SelectorDnD(props: SelectorDnDProps) {
}
}
setOptionsState(newOptionsState);
console.log(newOptionsState);
props.action.options = newOptionsState;
};

Expand Down
2 changes: 1 addition & 1 deletion src/architecture/components/core/dropdown/typing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ReactNode } from "react";

export type DropdownType = {
defaultValue?: string;
options: Record<string, string>;
options: [string, string][];
confirmNode?: ReactNode;
confirmTooltip?: string;
className?: string[];
Expand Down
5 changes: 4 additions & 1 deletion src/architecture/components/dnd/state/DnDState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ export const useDnDManager = create<DnDManagerState>((set, get) => ({
addScope: (uniqueId: string, manager: AbstractDndManager) => {
const { scopes } = get();
if (scopes.has(uniqueId)) {
return false;
log.debug(`Scope ${uniqueId} already exists. Replacing.`);
scopes.delete(uniqueId);
}
log.debug(`Adding scope ${uniqueId}`);
scopes.set(uniqueId, manager);
set({ scopes: scopes });

return true;
},
removeScope: (uniqueId: string) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ export function ActionsManagement(props: ActionsManagementProps) {
info.actions = newOptionsState;
};

const actionsMemo: Record<string, string> = useMemo(() => {
const record: Record<string, string> = {};
const actionsMemo: [string, string][] = useMemo(() => {
const record: [string, string][] = [];
actionsStore.getActionsKeys().forEach((key) => {
record[key] = actionsStore.getAction(key).getLabel();
record.push([key, actionsStore.getAction(key).getLabel()]);
});
return record;
}, []);
Expand Down

0 comments on commit d01d5ec

Please sign in to comment.