Skip to content

Commit

Permalink
minor js fix
Browse files Browse the repository at this point in the history
  • Loading branch information
geckod22 committed Nov 14, 2024
1 parent 278168a commit a58907c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/cacheExclusion/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const CacheExclusion = ({ methods, constants }) => {
const apiUrl = methods.NewfoldRuntime.createApiUrl("/newfold-ecommerce/v1/cacheexclusion/update");

const handleCacheExclusionChange = (e) => {
if( e.target.value !== cacheExclusion ) {
if( e.target.value !== currentValue ) {
setIsEdited(true);
}else{
setIsEdited(false);
Expand All @@ -25,6 +25,7 @@ const CacheExclusion = ({ methods, constants }) => {
}).then((result)=>{
setIsSaved(true);
setCacheExclusion(currentValue);
setIsEdited(false)
}).catch((error) => {
setIsError(error.message);
});
Expand Down

0 comments on commit a58907c

Please sign in to comment.