Now goes back to loc page on edit submit
This commit is contained in:
@@ -141,7 +141,6 @@ export function LocationContainer() {
|
||||
useEffect(() => {
|
||||
// Check if they're not the same
|
||||
if (JSON.stringify(locationsList) !== JSON.stringify(settingsLocations)) {
|
||||
console.log("Updating locations settings", locationsList, settingsLocations);
|
||||
setLocationsSetting.mutate(locationsList);
|
||||
}
|
||||
}, [spoolLocations]);
|
||||
|
||||
@@ -164,7 +164,7 @@ export function SpoolCard({
|
||||
#{spool.id} {filament_name}
|
||||
</span>
|
||||
<div>
|
||||
<Link to={editUrl("spool", spool.id)}>
|
||||
<Link to={`/spool/edit/${spool.id}?return=` + encodeURIComponent(window.location.pathname)}>
|
||||
<Button icon={<EditOutlined />} title={t("buttons.edit")} size="small" type="text" />
|
||||
</Link>
|
||||
<Link to={showUrl("spool", spool.id)}>
|
||||
|
||||
Reference in New Issue
Block a user