Skip to content

Commit

Permalink
fix: fix warning displaying on wrong table (#1307)
Browse files Browse the repository at this point in the history
fix: replace accidentally removed line

fix: deleted additional line
  • Loading branch information
jij1949 authored Aug 14, 2023
1 parent 416f48a commit 21ea259
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const DataTableViewWarnings: React.FC<IProps> = ({
const createWarning = useCallback(
(item: IDataTableWarning) =>
dispatch(
createTableWarnings(tableId, item.message, item.severity)
createTableWarnings(item.table_id, item.message, item.severity)
).then((newWarning) => {
setDisplayNewForm(false);
return newWarning;
Expand Down Expand Up @@ -107,6 +107,7 @@ export const DataTableViewWarnings: React.FC<IProps> = ({
<Card title="" width="100%" flexRow>
<GenericCRUD<Partial<IDataTableWarning>>
item={{
table_id: tableId,
message: '',
severity: DataTableWarningSeverity.WARNING,
}}
Expand Down

0 comments on commit 21ea259

Please sign in to comment.