Fixed input not encoding on load
This commit is contained in:
parent
fbc6611137
commit
d58e1a454c
@ -98,7 +98,6 @@ const TruthTablePage: Component = () => {
|
||||
history.pushState(null, "", `?exp=${ encodeURIComponent(exp) }&simplify=${ simplifyEnabled() }&
|
||||
hide=${ hideValues().value }&sort=${ sortValues().value }&hideIntermediate=${ hideIntermediates() }`);
|
||||
|
||||
exp = replaceOperators(exp);
|
||||
|
||||
getFetchResult(exp);
|
||||
}
|
||||
@ -108,6 +107,7 @@ hide=${ hideValues().value }&sort=${ sortValues().value }&hideIntermediate=${ hi
|
||||
setFetchResult(null);
|
||||
|
||||
if (exp && exp !== "") {
|
||||
exp = replaceOperators(exp);
|
||||
setError(null);
|
||||
setIsLoaded(false);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user