mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-07-07 04:53:25 -05:00
Fix a backend server error when creating a named restore point. #7166
This commit is contained in:
parent
cdf49d6300
commit
8145e042a6
|
@ -1799,7 +1799,11 @@ class ServerNode(PGChildNodeView):
|
|||
None
|
||||
"""
|
||||
try:
|
||||
data = request.form
|
||||
data = None
|
||||
if request.form:
|
||||
data = request.form
|
||||
elif request.data:
|
||||
data = json.loads(request.data)
|
||||
restore_point_name = data['value'] if data else None
|
||||
manager = get_driver(PG_DEFAULT_DRIVER).connection_manager(sid)
|
||||
conn = manager.connection()
|
||||
|
@ -1812,10 +1816,10 @@ class ServerNode(PGChildNodeView):
|
|||
restore_point_name
|
||||
)
|
||||
)
|
||||
if not status:
|
||||
return internal_server_error(
|
||||
errormsg=str(res)
|
||||
)
|
||||
if not status:
|
||||
return internal_server_error(
|
||||
errormsg=str(res)
|
||||
)
|
||||
|
||||
return make_json_response(
|
||||
data={
|
||||
|
|
|
@ -376,7 +376,7 @@ export default function QueryToolDataGrid({columns, rows, totalRowCount, dataCha
|
|||
|
||||
const dataGridExtras = useMemo(()=>({
|
||||
onSelectedCellChange, handleCopy
|
||||
}), []);
|
||||
}), [onSelectedCellChange]);
|
||||
|
||||
useEffect(()=>{
|
||||
let initCols = initialiseColumns(columns, rows, totalRowCount, columnWidthBy);
|
||||
|
|
Loading…
Reference in New Issue
Block a user