Skip to content

Commit

Permalink
[#70338] add branch to room name and do not encode file path
Browse files Browse the repository at this point in the history
  • Loading branch information
Trzcin authored and MaciejWas committed Dec 19, 2024
1 parent 6c77552 commit d3cfe63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/myst-git/MystEditorGit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const MystEditorGit = ({
const files = useSignal([]);
const file = useSignal();
const initialText = useSignal("");
const room = useComputed(() => (commit.value && file.value ? `${repo}/${commit.value.hash}/${encodeURIComponent(file.value)}` : ""));
const room = useComputed(() => (commit.value && file.value ? `${repo}/${branch.value}/${commit.value.hash}/${file.value}` : ""));
const mystState = useRef(createMystState({ ...props }));
const changeHistory = useSignal(initialHistory);
const toast = useSignal({ content: null, timeout: null });
Expand Down

0 comments on commit d3cfe63

Please sign in to comment.