Skip to content
Snippets Groups Projects
Commit fe2fff2f authored by Jacob Benz's avatar Jacob Benz
Browse files

fix open button for files from GitLab with type blob

parent ec53ec79
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ export const FooterLoad = ({ onCancel }: FooterProps) => {
if (!selectedItem) return;
if (selectedItem.type === 'file' && selectedItem.path) {
if ((selectedItem.type === 'file' || selectedItem.type === 'blob') && selectedItem.path) {
const resource = await fetchDocument({ path: selectedItem.path });
load(resource);
return;
......
......@@ -52,7 +52,7 @@ export interface SelectedItem {
organization?: Organization;
path?: string;
repository?: Repository;
type?: 'file' | 'folder' | 'repo' | 'org' | 'dir';
type?: 'file' | 'folder' | 'repo' | 'org' | 'dir' | 'blob';
}
export type Validate = (content: string) => { valid: boolean; error?: string };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment