..
This commit is contained in:
parent
9689bfcc18
commit
62a385e4c9
33 changed files with 2649 additions and 809 deletions
|
|
@ -41,6 +41,15 @@ export function useProject() {
|
|||
window.history[milestone ? 'pushState' : 'replaceState'](null, '', queryUrl(query));
|
||||
const canonical = decodeState(query).state;
|
||||
if (next.project === current.state.project) canonical.project = current.state.project;
|
||||
else {
|
||||
// Progress changes should not rerun geometry and stock allocation.
|
||||
if (next.project.rooms === current.state.project.rooms)
|
||||
canonical.project.rooms = current.state.project.rooms;
|
||||
if (next.project.flooring === current.state.project.flooring)
|
||||
canonical.project.flooring = current.state.project.flooring;
|
||||
if (next.project.skirting === current.state.project.skirting)
|
||||
canonical.project.skirting = current.state.project.skirting;
|
||||
}
|
||||
return { state: canonical, error: null };
|
||||
} catch (error) {
|
||||
return {
|
||||
|
|
|
|||
Loading…
Reference in a new issue