pull/5026/head
bunsenstraat 4 months ago committed by Aniket
parent d351f0615f
commit 994ebf20b9
  1. 2
      libs/remix-ui/git/src/components/buttons/sourceControlBase.tsx
  2. 2
      libs/remix-ui/git/src/lib/gitactions.ts

@ -44,7 +44,7 @@ export const SourceControlBase = (props: SourceControlButtonsProps) => {
}, [context.branchDifferences, context.currentBranch, branch, remote]) }, [context.branchDifferences, context.currentBranch, branch, remote])
const setDefaultRemote = () => { const setDefaultRemote = () => {
if(context.defaultRemote) { if (context.defaultRemote) {
setRemote(context.defaultRemote) setRemote(context.defaultRemote)
return return
} }

@ -644,7 +644,7 @@ export const loadGitHubUserFromToken = async () => {
} }
export const statusMatrix = async (filepaths: string[]) => { export const statusMatrix = async (filepaths: string[]) => {
const matrix = await plugin.call('dgitApi', 'status', { ref: "HEAD", filepaths: filepaths || ['.'] }); const matrix = await plugin.call('dgitApi', 'status', { ref: "HEAD", filepaths: filepaths || ['.']});
const result = (matrix || []).map((x) => { const result = (matrix || []).map((x) => {
return { return {
filename: `/${x.shift()}`, filename: `/${x.shift()}`,

Loading…
Cancel
Save