Skip to content

Commit 0913e66

Browse files
refactor: update browseFiles action to remove default properties and improve file dialog handling (#3957)
--------- Co-authored-by: sanjai0py <[email protected]>
1 parent f0c3125 commit 0913e66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ export const browseDirectory = () => (dispatch, getState) => {
10391039
};
10401040

10411041
export const browseFiles =
1042-
(filters = [], properties = ['multiSelections']) =>
1042+
(filters, properties) =>
10431043
(_dispatch, _getState) => {
10441044
const { ipcRenderer } = window;
10451045

packages/bruno-electron/src/utils/filesystem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ const browseDirectory = async (win) => {
114114
return isDirectory(resolvedPath) ? resolvedPath : false;
115115
};
116116

117-
const browseFiles = async (win, filters, properties) => {
117+
const browseFiles = async (win, filters = [], properties = []) => {
118118
const { filePaths } = await dialog.showOpenDialog(win, {
119119
properties: ['openFile', ...properties],
120120
filters

0 commit comments

Comments
 (0)