fixx(ui): fix bug
This commit is contained in:
parent
ce9968ee73
commit
081990fb24
1 changed files with 4 additions and 5 deletions
|
|
@ -147,11 +147,10 @@ export default function PluginCard({
|
|||
}: CardWrapper<UnifiedPluginModel>) {
|
||||
plugin.usePluginState();
|
||||
|
||||
const [, forceUpdate] = React.useReducer(() => ({}), 0);
|
||||
const cardContextValue = useMemo(
|
||||
() => ({ plugin, result }),
|
||||
[plugin, result],
|
||||
);
|
||||
|
||||
const [, forceUpdate] = React.useReducer(() => ({}), 0);
|
||||
const cardContextValue = useMemo(() => ({ plugin, result }), [plugin, result]);
|
||||
const core = isCorePlugin(plugin.id);
|
||||
|
||||
return (
|
||||
<CardContext.Provider value={cardContextValue}>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue