Skip to content

Commit

Permalink
MDE/PKFE-19 bug-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mantvydasdeltuva committed Aug 28, 2024
1 parent b02578b commit 6aad38c
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const EditorView: React.FC = () => {
setIsLoading(true);

try {
const response = await axios.get(`${Endpoints.WORKSPACE}/${Workspace.fileId}`, {
const response = await axios.get(`${Endpoints.WORKSPACE_FILE}/${Workspace.fileId}`, {
params: {
page: page,
rowsPerPage: rowsPerPage,
Expand All @@ -63,6 +63,12 @@ export const EditorView: React.FC = () => {

const { totalRows, header, rows } = response.data as FileDataResponseDTO;

if (!header) {
setgridColumns([]);
setgridRows([]);
return;
}

const parsedColumns = header.map((value) => {
return {
field: value,
Expand Down

0 comments on commit 6aad38c

Please sign in to comment.