Skip to content

Commit c4c5d01

Browse files
remove additional changes
Co-authored-by: Prateek Sunal <prtksunal@gmail.com>
1 parent e2ca49e commit c4c5d01

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

  • packages/bruno-app/src/components

packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useFormik } from 'formik';
44
import * as Yup from 'yup';
55
import StyledWrapper from './StyledWrapper';
66
import { useRef } from 'react';
7-
import path, { getRelativePath } from 'utils/common/path';
7+
import path from 'utils/common/path';
88
import SensitiveFieldWarning from 'components/SensitiveFieldWarning/index';
99
import SingleLineEditor from 'components/SingleLineEditor/index';
1010
import { useDetectSensitiveField } from 'hooks/useDetectSensitiveField/index';
@@ -98,7 +98,7 @@ const ClientCertSettings = ({ collection }) => {
9898
const getFile = (e) => {
9999
const filePath = window?.ipcRenderer?.getFilePath(e?.files?.[0]);
100100
if (filePath) {
101-
let relativePath = getRelativePath(collection.pathname, filePath);
101+
let relativePath = path.relative(collection.pathname, filePath);
102102
formik.setFieldValue(e.name, relativePath);
103103
}
104104
};

packages/bruno-app/src/components/RequestPane/Auth/OAuth1/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
22
import get from 'lodash/get';
33
import { useTheme } from 'providers/Theme';
44
import { useDispatch } from 'react-redux';
5-
import path, { getRelativePath } from 'utils/common/path';
5+
import path from 'utils/common/path';
66
import { IconSettings, IconShieldLock, IconAdjustmentsHorizontal, IconCaretDown, IconChevronRight, IconFile, IconX, IconUpload } from '@tabler/icons';
77
import MenuDropdown from 'ui/MenuDropdown';
88
import SingleLineEditor from 'components/SingleLineEditor';
@@ -70,7 +70,7 @@ const OAuth1 = ({ item = {}, collection, request, save, updateAuth }) => {
7070
.then((filePaths) => {
7171
if (filePaths && filePaths.length > 0) {
7272
let filePath = filePaths[0];
73-
filePath = getRelativePath(collection.pathname, filePath);
73+
filePath = path.relative(collection.pathname, filePath);
7474
dispatch(
7575
updateAuth({
7676
mode: 'oauth1',

0 commit comments

Comments
 (0)