Skip to content

Commit

Permalink
fix for execute link not refreshing the index
Browse files Browse the repository at this point in the history
  • Loading branch information
reinvanoyen committed Sep 5, 2023
1 parent 3f9b683 commit c5a34c7
Show file tree
Hide file tree
Showing 6 changed files with 144 additions and 160 deletions.
290 changes: 137 additions & 153 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/preset-react": "^7.10.4",
"@babel/preset-react": "^7.22.15",
"@redux-devtools/core": "^3.13.1",
"@redux-devtools/extension": "^3.2.5",
"cross-env": "^7.0.3",
Expand Down
2 changes: 1 addition & 1 deletion public/js/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"/js/app.js": "/js/app.js?id=407f2e3c3c33d78771af1dfb094d80c0",
"/js/app.js": "/js/app.js?id=78f77b681669277483b9635f804ad7c8",
"/js/manifest.js": "/js/manifest.js?id=22bb55ce20c9c883a45b5c11d8eca703",
"/js/vendor.js": "/js/vendor.js?id=a21c2dcb4fdd557ce1ec6c040ad40be4",
"/css/app.css": "/css/app.css?id=480082d086b2f1b7a2c82d4ec82767ac"
Expand Down
6 changes: 3 additions & 3 deletions resources/js/components/execute-link.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import Overlay from "../core/ui/overlay";
import Window from "../core/ui/window";
import Form from "../core/ui/form";
import components from "../rendering/components";
import ReactDOM from "react-dom";
import {createRoot} from "react-dom/client";
import { createRoot } from "react-dom/client";

class ExecuteLink extends React.Component {

Expand Down Expand Up @@ -46,7 +45,8 @@ class ExecuteLink extends React.Component {
}

redirect(response) {
path.handleRedirect(this.props, {id: response.data.id});
const props = {...this.props, refresh: true};
path.handleRedirect(props, {id: response.data.id});
}

handleClick() {
Expand Down
2 changes: 1 addition & 1 deletion src/Cmf.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function __construct(ModuleRegistry $modules)
*/
public function getVersion(): string
{
return '0.2.1';
return '0.2.2';
}

/**
Expand Down

0 comments on commit c5a34c7

Please sign in to comment.