FIX ASSIGN TABLE

This commit is contained in:
Elvis 2023-02-26 20:22:33 -05:00
parent b28f35bd26
commit eaa85eb47e
1 changed files with 6 additions and 2 deletions

View File

@ -3375,8 +3375,12 @@ class AppWindow(FrontWindow):
'state': 'available',
'sale': None,
}
self.RestTables.write([current_table['id']], to_drop)
to_drop['id'] = current_table['id']
if isinstance(current_table, int):
self.RestTables.write([current_table], to_drop)
to_drop['id'] = current_table
elif isinstance(current_table, dict):
self.RestTables.write([current_table['id']], to_drop)
to_drop['id'] = current_table['id']
vals = {
'table_assigned': {